473,378 Members | 1,479 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,378 software developers and data experts.

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 1083
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.tamu.edu> wrote in message
news:O5***************@TK2MSFTNGP11.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.tamu.edu> wrote in message
news:O5***************@TK2MSFTNGP11.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 registerclientscriptblock 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.tamu.edu> wrote in message
news:O5***************@TK2MSFTNGP11.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
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...
0
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...
0
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...
5
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
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 =...
3
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...
9
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...
1
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...
7
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.