Introduction:-
Here
I have explained how to call a javascript function from code behind and a
simple javascript alert message from code behind in asp.net.
Description:-
In my previous article I have explained Calling different page into a div of another page using Javascript with progress bar , How to show different notification in Asp.net using Jquery and Javascript ? , How to calculate difference between two dates using JQuery? , How to call a session variable in jQuery? , How to find a control inside a repeater using JQuery. ,Select all checkbox inside a gridview using JavaScript , TextBox text changed event inside a gridview using JavaScript ,How to scroll page from top to bottom and from bottom to top using Jquery/Javascript ,Snow falls using javascript , How to save image in different size in Asp.net .
For call a javascript function from code behind write
the following code.
ScriptManager.RegisterStartupScript(this, this.GetType(),
"Message", "CallPopUp();", true);
For a alert message from code behind write the following code
ScriptManager.RegisterStartupScript(this, this.GetType(),
"Message", "alert(‘Hi this is shibashish’);", true);
I hope you will like this article. Any concern you can mail me or contact
me by any social media.
Keep coding…
Thanks
Shibashish Mohanty
No comments:
Post a Comment
Please don't spam, spam comments is not allowed here.