Avatar of mwhodges
mwhodges
Flag for United States of America asked on

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
ASP.NETVisual Basic.NETAJAX

Avatar of undefined
Last Comment
mwhodges

8/22/2022 - Mon
Chad Smith

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

ASKER
Is this for vb? the semicolon looks like a c# call.
mwhodges

ASKER
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

All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
Chad Smith

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mwhodges

ASKER
I tried the code without the semicolon and I got the earlier error message.