Hi, Display JavaScript Message box, which is created dynamically in the code behind
To display a message you can put the following code any where in the code behind page. you must place only in between any functions.
Code ClientScriptManager cs = Page.ClientScript; Type ty = this.GetType(); cs.RegisterStartupScript(Type type, string key, string script,bool addScripttag);
ex : cs.RegisterStartupScript(ty, "Key Value", "alert('message')", true);
Enjoy this code to execute any type of javascript code i check for this only. You can check with other javascript code with this.
Thank You.
|
| Author: VMRK 29 Jul 2009 | Member Level: Silver Points : 0 |
good one really interesting
|
| Author: Hari Nagaraj 19 Aug 2009 | Member Level: Bronze Points : 1 |
As i want to display the message box with yes or no button in it. If Yes is clicked want to execute some similarly when No is clicked. can any have the solution regarding this....
|