Server Side Alert Messages.
-
I need to display an operation successful/unsuccessful message client-side, after server-side code determines if the operation was successful or not.. I know how to display javascript alerts on button clicks, but I need an alert determined by server code.. help meee :) thanks. (Ps. I'm coding in C#)
-
I need to display an operation successful/unsuccessful message client-side, after server-side code determines if the operation was successful or not.. I know how to display javascript alerts on button clicks, but I need an alert determined by server code.. help meee :) thanks. (Ps. I'm coding in C#)
On you event code, on completion, register the javascript with the ScriptManager. This can only be done during a postback, as the server can't push data to the client.
//do lots of server side type stuff //tell the user you are complete... ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myuniquekey", @"alert('operation is complete');", true);
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
-
I need to display an operation successful/unsuccessful message client-side, after server-side code determines if the operation was successful or not.. I know how to display javascript alerts on button clicks, but I need an alert determined by server code.. help meee :) thanks. (Ps. I'm coding in C#)
u can msgbox concept for server side. see this link: http://www.bassilsoft.com/