C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !



Posted By: sridevi       Member Level: Bronze       Posted Date: 24 Aug 2007       Category: ASP.NET

How to call javascript function from serverside?



for example, a webform has one textbox control named 'txtCity' which accepts only alphabets.For this validation one javascript function is written named acceptChar.How to call acceptchar javascript function from serverside


Select Answer:

controlname.Attributes.Add("("onkeypress", "acceptChar(' ')")
txtCity.Attributes.Add("("onkeypress", "acceptChar(' ')")
Attributes.Add("("onkeypress", "acceptChar")
Attributes.Add("(onkeypress(),"acceptChar")




      
Your Test Score: 0 / 0



Next Question: what are the types of web buttons in asp.net 2.0?
Previous Question: NHibernate mapping files
Related Questions:
  • ABout Transaction Processing


  • XML and ADO.NET


  • Threading


  • Which of the following is true about session in ASP.NET?


  • Where are the IIS log files stored?


  • Categories

    ASP.NET C# VB.NET 
    .NET Framework SQL Server Other 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    dotNet Slackers   BizTalk Adaptors    Web Design


    Contact Us    Privacy Policy    Terms Of Use