473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How can I use server side validation that asks the user a question?

16
I'm trying to use validation (probably utilising the CustomValidator in ASP.NET 2.0) that checks whether a user entered order id already exists in a database, then, if it does exist, display a prompt for the user to ask whether they want to overwrite the order or enter a different order number.
I'm not sure how to do this. I know I can use client side validation for the user prompt, and server side validation to check the order number against the database, but I'm not sure how to put the two things together i.e. check the database then, if the order exists, ask the user whether they want to overwrite the current order or go back and enter a new order id.
Has anyone done this sort of thing before?
Jun 15 '10 #1
4 1311
NitinSawant
270 100+
yes,
Create a user control, put all things together

goto design mode and just drag the control on the page

http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx

Regards,
Nitin
Jun 16 '10 #2
AndrewK
16
Thanks for your response NitinSawant.
Would I be able to display a prompt to the user though, only if the order id already exists, asking them whether they want to keep the current order id that they've entered or enter another one?
Jun 16 '10 #3
NitinSawant
270 100+
yes,

you can display alert box/prompt using javascript
Jun 16 '10 #4
AndrewK
16
Okay, thanks very much for taking the time to respond. I'll give it some thought.
Jun 16 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Hernán Castelo | last post by:
should i to validate all the "Request"s calls like Request.FORM("...") and Request.Cookies("...") ???? if it is so, i have to see inside every "Input" elements like "Text" and even "Hidden"...
4
by: middletree | last post by:
I posted this yesterday afternoon, but for some reason, I don't see it in my newsreader, on either of my 2 computers. So I am re-posting. I'd like to see if there is any guidance in the form of...
1
by: Tony | last post by:
Hi folks, I've got a bit of a problem. I have a situation where I build forms completely dynamically based on a form definition supplied from a database. Anyway, I noticed that required fields...
4
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all...
0
by: amessimon | last post by:
Hi I have a long form - around 80 fields - which i have decided to break up into more manageable sections using the <asp:Panel> control. Basically i have three panels (stages) containing...
3
by: interuser | last post by:
Hi How can I prevent an event (eg button click) from happening from within page_load? The reason is that I want to make my existing application work for netscape, for which there are no client...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
3
by: SuperSizeMe | last post by:
I have an internal intranet site that I have built using asp.net (via VS ..Net 2003). When I launched the site, it was on a windows 2000 server, using the .Net framework 1.1. Many of the ASPX pages...
3
by: msnews.microsoft.com | last post by:
Hi All, I m facing problem in Server Side Validation. For Example The Scenario is I have two fields on the page 1 Country Dropdown List 2 Province Textbox 3 State Dropdown List
1
by: vidya | last post by:
Hi, I have a button which is a web control. I have some validation in javascript for the button in .aspx file and some in the button onclick event in code behind(C#). I need to get through both...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.