I have a page that contains a user control within an update panel. $(document).ready(function() ) { is called and executes the code correctly when the page firs
Bestest way is
Sys.Application.add_load(LoadScript);
you hemla code gose here
Javascript function
or
Its under UpdatePanel than you need to register client script again using
ScriptManager.RegisterClientScript
or
$(document).ready(function() {
// bind your jQuery events here initially
});
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function() {
// re-bind your jQuery events here
loadscript();
});
$(document).ready(loadscript);
function loadscript()
{
//yourcode
}