Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 30, 2009 05:35 AM by flohaas
Jun 05, 2007 01:22 PM|LINK
I already tried this:
ClientScriptManager csm = Page.ClientScript;
csm.RegisterStartupScript(this.GetType(), "winPop", "alert('Update is successful');", true);
And it is not working. Again, I have to stress that the reason why it does not work is because I'm using AJAX UpdatePanel. If I turned off the AJAX UpdatePanel then it works perfectly. So unless there is a trick going around this AJAX UpdatePanel issue,
it's not going to work.
Nov 09, 2007 06:15 PM|LINK
Did you figure out a solution to this problem? I have exactly the same issue.....trying to figure out how to fire an alert while using AJAX
Feb 18, 2009 12:35 AM|LINK
old thread but i thought i'd post...might help somebody out...
for ajax, you need to use the scriptmanager's built in method: RegisterClientScriptBlock
eg. ScriptManager.RegisterClientScriptBlock(UpdatePanelControlName, typeof(UpdatePanel), "somerandomstring", "alert('yo');", true);
May 29, 2009 08:21 AM|LINK
the following code work fine in c# under code behind with @ symbol in proper place
MY ISSUE IS I NEED A NEW LINE AFTER strErrorDesc for that i used a modified code like this
BUT IT DIDN'T WORKED AT ALL
SO COULD YOU PLEASE GUIDE ME TO SOLVE THIS SITUATION
output i require is
BELONGS TO AN OFFICER OF CPPC
May 30, 2009 05:13 AM|LINK
Hello try this one.
alert('First Line\\nSecond Line') ;
hope this helps!
May 30, 2009 05:35 AM|LINK
it is working.......