Wednesday, February 16, 2011

Using JQuery with Visual Studio ASP.NET when using master and content pages

Good article for beginners on how to use JQuery together with C# ASP.NET here.

Pay attention to the comments at the end if you are using a master page and content pages and pay attention you will need to use a different finder string to locate auto generated ASP.NET control IDs:

Comment posted by Konrad on Tuesday, January 05, 2010 10:23 AM 
Something important when referencing server controls,
if you have a asp:Button control, $("#Button1") won't work.
You need to use this $("#<%= Button1.ClientID %>") 



Comment posted by mayuresh on Wednesday, March 04, 2009 4:08 PM
Adding the same code to a child page inheriting a master page..cause the page to referesh on postback


    
    


   

    

Using JQuery with ASP.NET comes to mind immediately when thinking of using a datetime picker control that is so much missing from the tools section of visual studio (the calendar control is really not a solution for most of us ! )

No comments:

Post a Comment

Feel free to comment. No links/URLs allowed in comments.