c# - Jquery Message Box After Postback -
i want use this plugin in asp.net application
i want show alert or etc after postback. wrote code not work.
string = null; = "csscody.alert('<h1>information alert</h1><em>low level</em><br/><p>© rights reserved 2006-2010. </p><p> jquery examples site <a href=\\'http://www.csscody.com/\\'>www.csscody.com</a> </p>');return false;"; scriptmanager.registerstartupscript(page, gettype(), "script", a, true);
this code works client side :
<p> <strong>1.)</strong> <a href="http://www.csscody.com/#" onclick="csscody.alert('<h1>information alert</h1><em>low level</em><br/><p>© rights reserved 2006-2010. </p><p> jquery examples site <a href=\'http://www.csscody.com/\'>www.csscody.com</a> </p>');return false;"> info message popup alert</a></p> <p>
thanks.
try in c# code
clientscript.registerclientscriptblock(typeof(page), "yourkey", "$().ready(function () { csscody.alert('hello')});", true);
Comments
Post a Comment