Search All Articles Submit your Website or Blog to A New Internet Library
Friday, July 3, 2009
Alternative: $(document).ready handler will not be fired on asynchronous postback.
Like in case we are using updatepanel under which we have postback button along with jQuery calender textbox.
And datepicker is attached to a textbox in document ready event handler.
Upon postback jquery calender will not work as $(document).ready will not be called on
asynchronous postback
so to make sure this to work we have to call a Javascript function after an UpdatePanel asynchronous postback using the following line
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(showdatepicker);
here showdatepicker is a function which will attach jQuery datepicker to a textbox.
Subscribe to:
Post Comments (Atom)
Also Read other Top Articles
- JSON Serialization in VS 2008
- Implementing Forms Authentication in Silverlight Application.
- Making GridView Rows or Individual Cells Clickable and Selectable.
- Enabling browser back button for GridView Paging and Sorting in Ajax 1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008)
- How to pass values from User Control to Page or calling Page methods from User Control.
- What is WCF?
- New features in C# 4.0
- C# to VB.NET and VB.NET to C# online free converter tools.


2 comments:
What about using pageLoad() ?
hi moi
page_load will be called in this case problem is with $(document).ready
Post a Comment
Post your comments/questions/feedback for this Article.