473,698 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting up validiation check for dropdownlist box

I wonder if there is a way we can make user select dropdownlist box before
they can go to the next page
I did use validiation control but seem it fail
Nov 18 '05 #1
3 1100
A validation control would be the standard way to handle this.
Perhaps we can help you get going with it if you tell us more about the
failure you experienced.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Hai Nguyen" <ha******@neo.t amu.edu> wrote in message
news:O5******** *******@TK2MSFT NGP11.phx.gbl.. .
I wonder if there is a way we can make user select dropdownlist box before
they can go to the next page
I did use validiation control but seem it fail

Nov 18 '05 #2
I have a dropdownlist box which retrives from a database. It looks like this
A
B
C
D
E

I want to add one more row which does not have in database and also don't
want to mess with the database. I want it look like this for later
validation check

Select Here
A
B
C
D
E
T
he validation check will throw an ErrorMessage if users does not select
anything at all.

"Hai Nguyen" <ha******@neo.t amu.edu> wrote in message
news:O5******** *******@TK2MSFT NGP11.phx.gbl.. .
I wonder if there is a way we can make user select dropdownlist box before
they can go to the next page
I did use validiation control but seem it fail

Nov 18 '05 #3
use a custom validation control....
you will need to write you own client side and server side validation
code... so you can customize it the way you want to.....

use registerclients criptblock to register the javascript... and all you have
to do is set the methods to custom validation control.. with the control to
validate....

http://authors.aspalliance.com/aspxt...orcontrol.aspx

if you need any help... i might be able to help you with some code...

--
Regards,

HD

"Hai Nguyen" <ha******@neo.t amu.edu> wrote in message
news:O5******** *******@TK2MSFT NGP11.phx.gbl.. .
I wonder if there is a way we can make user select dropdownlist box before
they can go to the next page
I did use validiation control but seem it fail

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2068
by: Roman | last post by:
I have built a simple user control that contains 2 buttons, a text box and a dropdownlist. When a button is clicked it sets the visible property of the textbox/dropdownlist and the button. ie the buttons allow me to toggle between the textbox and the dropdownlist. This works fine when the control is placed on the page but when it is placed inside a datalist, ie the itemtemplate, the onclick events for the buttons fire but the visibility...
0
2423
by: kamaumalone | last post by:
I have a dropdownlist which lives inside of a repeater. The repeater accepts user input via textboxes and the aforementioned dropdownlist. The repeater accepts phone numbers and allows for an arbitrary number of empty rows to be added to it. So, if a user knew in advance that they wanted to add 3 phone numbers, they can type the nuber '3' in a textbox (outside the repeater) and click a button (also outside of a repeater), and 3 new empty ...
0
972
by: Douglas Gage | last post by:
Hi every one I'm building datagrid which needs to have validiation check for each text box. Something will look like this Question Answer 1 abc validiation check 2 345 validiation check 3 def validiation check 4 52 validiation check 5 cgh validiation check
5
1404
by: Hai Nguyen | last post by:
I have a textbox which requires to fill out date in the format mm/dd/yyyy I want to know how i custom my validiator to check if input is in right format Thanks
2
1230
by: Doug | last post by:
According to online help, the DropDownList control (System.Web.UI.WebControls.DropDownList) has a .Height property. I found that setting it seems to have no effect. MyDDL.Height = Unit.Pixel(10); //I've tried other settings for Unit as well. I'm testing in IE 6/sp1 - so we're not dealing with downlevel browser support issues.
3
1845
by: tshad | last post by:
Is there a way to stop the system from setting the SelectedIndex of a dropdownlist to 0? I have it set at -1 in my code and if I push a button (that does nothing in my test), during PostBack it will be set to 0. I know that when I initially bind it from a table, it will set the SelectedIndex to 0. I then have to procedurally set it to a -1. But then if I push a button that does nothing, it will reset it list to 0, if it isn't set to...
9
2342
by: james.e.coleman | last post by:
Hello, I have created a custom dropdownlist that is used multiple times within a single page. When trying to set the values of the controls with the page in which they are being used, they all are set to the value of the last control. I found this link: http://www.codecomments.com/archive315-2005-1-366113.html which I think explains the situation but I'm not sure how to implement the solution in my case since I am not using a .ascx...
1
7229
by: Jason Wilson | last post by:
I have two dropdownlists that are bound to the same datasource and I have a couple of questions: 1) Because they are bound to the same datasource, I am assuming that they only make 1 round trip to the DB server -- is that correct? 2) On a user's click of a button, one of the actions in the button OnClick event is to set the selectedindex of the 2nd DDL to that of the 1st. I get a runtime error here that says that the given index is...
7
17429
by: =?Utf-8?B?UmVraGE=?= | last post by:
Hi, I am trying to change the font color for the items in a dropdownlist control at run time using ASP.NET 2.0. DropDownList1.Items.Attributes.Add("style", "color:red"); But when I run the application, I don't see any color change. I am using Visual Studio 2005, ASP.NEt 2.0.
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.