Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

VB.NET: Conditional Conformation prompt on a web page.

$
0
0

Here's a problem I have been puzzling over for a while... let's see what the greatest minds think about it:

A web page has a text field and a button.  The text field is populated with today's date when the web page loads.  When the user clicks the button here's what needs to happen:

  1. If the text field's value is a date before today, an ARE YOU SURE? confirmation needs to appear.  If the user answers YES, then a report is generated using the text field's value as an input parameter.  If the user answers no, then the same page is redisplayed and no report is generated.
  2. If the text field's value is today or in the future, then a report is generated using the text field's value as an input parameter.

It's the same report, the question is how to display a confirm prompt if the date is in the past.

Javascript can be used to always display an ARE YOU SURE? confirmation on a DELETE button, but this confirmation only should appear occasionally based upon the text field's value.


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>