Popup box in asp.net 4.0 when a condition is met

I would like to create a popupboxe when a condition is met in the codebehind. The condition is if the day they chose is a Sunday or not. I already have the conditional testing working I just need the popup. Thanks
mwhodgesAsked:
Who is Participating?
 
Chad SmithConnect With a Mentor Software EngineerCommented:
Yes it was for c# just remove the semicolon for vb
Response.Write ("<script>alert('My Popup');</script>")
0
 
Chad SmithSoftware EngineerCommented:
Response.Write("<script>alert('My Popup');</script>");
0
 
mwhodgesAuthor Commented:
Is this for vb? the semicolon looks like a c# call.
0
 
mwhodgesAuthor Commented:
I get the following error message when I try to run it:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed

0
 
mwhodgesAuthor Commented:
I tried the code without the semicolon and I got the earlier error message.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.