Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2010, 07:12 AM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show Message Box and then fire as required answer by User.

Hello Guys,

I want to do something like this.

I have a calendar control and an Update button in my page. When the user selects the date from calendar and clicks on update button.

when user clicks i update button it should check in the database table for the selected date. If the is any row in the selected date. Then it should show a message saying that the selected date is already present in the database. Do u want to overwrite. Yes or No buttons. If user selects yes then it should overwrite and if no it should do nothing.

All i need is how to display the message box from code behind and how can i get the events of yes or no to overwrite or not.

Please tell me how to do this.
 
Old February 20th, 2010, 01:48 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default Well...

Could you use a modal instead of a message box? You are already posting back the the server when you check for the date? If the date exists show the modal asking the question. The modal will have a Yes and No button and then If they choose No you can just cancel the modal and if they choose yes you can do your routine?
__________________
Jason Hall

Follow me on Twitter @jhall2013
 
Old February 21st, 2010, 04:13 AM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by alliancejhall View Post
Could you use a modal instead of a message box? You are already posting back the the server when you check for the date? If the date exists show the modal asking the question. The modal will have a Yes and No button and then If they choose No you can just cancel the modal and if they choose yes you can do your routine?

Hello,
Can u please give some sample code for doing this.
please.
 
Old February 22nd, 2010, 09:19 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

Do you have an AJAX enabled website?
__________________
Jason Hall

Follow me on Twitter @jhall2013





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show message box from MVC Controller? Kapilkoli ASP.NET 3.5 Professionals 0 February 5th, 2010 01:41 AM
Message Box (Show if form not filled out) misskaos Classic ASP Basics 38 October 10th, 2006 02:05 PM
how to show a confirmation message? noor ASP.NET 1.0 and 1.1 Basics 10 May 16th, 2005 03:12 AM
"Object Required" message chacquard Access 2 February 9th, 2004 12:50 PM
Fire WebForm Method from User Control bamirzada C# 0 August 21st, 2003 03:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.