I am using NOTIFY on a html input to notify my user whether the record has been saved or not. and It works just fine. But when I try to use it from my code behind file, it isn't. I understand that javascript is a client side technology and have tried using RegisterStartupScript but no luck.I am trying to use it on a button click like this\[code\] protected void Button1_Click1(object sender, EventArgs e) { var script = " $.notify.success('I do not want to close by myself close me ', { close: true });"; ClientScript.RegisterStartupScript(typeof(Page), "ButtonAlert", script, true); }\[/code\]but no luck.I am sure there must be a way to show a notification bar on top once the database has been updated. Say can we do it using a function?
my script is defined as follows \[code\] <!-- Notify Implementation --><script src="http://stackoverflow.com/questions/Scripts/jquery-1.9.0.js" type="text/javascript"></script><link href="http://stackoverflow.com/questions/Styles/notify.css" rel="stylesheet" type="text/css" /><script src="http://stackoverflow.com/questions/Scripts/notify.js" type="text/javascript" ></script><script type="text/javascript"> function myNotify() { $.notify.success('I do not want to close by myself close me ', { close: true }); };\[/code\]Can somebody help please
my script is defined as follows \[code\] <!-- Notify Implementation --><script src="http://stackoverflow.com/questions/Scripts/jquery-1.9.0.js" type="text/javascript"></script><link href="http://stackoverflow.com/questions/Styles/notify.css" rel="stylesheet" type="text/css" /><script src="http://stackoverflow.com/questions/Scripts/notify.js" type="text/javascript" ></script><script type="text/javascript"> function myNotify() { $.notify.success('I do not want to close by myself close me ', { close: true }); };\[/code\]Can somebody help please