Solved

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

Posted on 2010-11-10
5
481 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
0
Comment
Question by:mwhodges
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Chad Smith
ID: 34102454
Response.Write("<script>alert('My Popup');</script>");
0
 

Author Comment

by:mwhodges
ID: 34102725
Is this for vb? the semicolon looks like a c# call.
0
 

Author Comment

by:mwhodges
ID: 34102782
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
 
LVL 10

Accepted Solution

by:
Chad Smith earned 500 total points
ID: 34103025
Yes it was for c# just remove the semicolon for vb
Response.Write ("<script>alert('My Popup');</script>")
0
 

Author Comment

by:mwhodges
ID: 34103052
I tried the code without the semicolon and I got the earlier error message.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now