Calling javascript function on update of update panel

Posted by Chinnu21 under ASP.NET on 12/5/2007 | Views : 5507 | Status : [Member] | Replies : 3
How to call javascript function on each update of update panel.




Responses

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

ofcourse using ScriptManager

try tis

Page.ClientScript.RegisterStartupScript(this.GetType(), "check", "check()", true);



Mark as Answer if its helpful to you

Chinnu21, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

Chinnu21, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: SheoNarayan on: 12/5/2007 [Administrator] HonoraryPlatinum

Up
0
Down
Hi Chinnu21,

You can use following code in the update method.

 ScriptManager.RegisterStartupScript(this, this.GetType(), "alertme", "AlertME();", true);


In the .aspx page, you need to write the JavaScript function like following

<script language="javascript" type="text/javascript">

function AlertME()
{
// your javascript code
alert("MEMEMME");
}
</script>


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Chinnu21, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response