Sunday, March 18, 2012

Calling server side function from Javascript

using _dopostback in asp.net without flickering page

 <script type="text/javascript">
function CallServerFunction()
{
__doPostBack('<%= upnlRes.UniqueID %>', '');
}
</script>

// in above example upnlRes is the UpdatePanel Id


__doPostBack is can load the page of asp.net.

No comments:

Post a Comment

Comments

Protected by Copyscape Plagiarism Software