We help IT Professionals succeed at work.

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

mwhodges
mwhodges asked
on
534 Views
Last Modified: 2012-05-10
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
Comment
Watch Question

Chad SmithSoftware Engineer
CERTIFIED EXPERT

Commented:
Response.Write("<script>alert('My Popup');</script>");

Author

Commented:
Is this for vb? the semicolon looks like a c# call.

Author

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

Software Engineer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I tried the code without the semicolon and I got the earlier error message.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.