• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 500
  • Last Modified:

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
0
mwhodges
Asked:
mwhodges
  • 3
  • 2
1 Solution
 
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
 
Chad SmithSoftware EngineerCommented:
Yes it was for c# just remove the semicolon for vb
Response.Write ("<script>alert('My Popup');</script>")
0
 
mwhodgesAuthor Commented:
I tried the code without the semicolon and I got the earlier error message.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now