Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two fields as follows


diesel cost combobox1

diesel rate combobox2

when user run first want to click the combobox2 first.if suppose when user clicks the combobox1 want to show the message as "first select the combobox2 first".


for that how to write the code in asp.net.please help me.it is a window based application.

Reagards,
Narasiman P
Posted
Comments
n.podbielski 13-Oct-12 2:28am    
Why not hide second combo until user fill out first?
Mohamed Mitwalli 13-Oct-12 2:34am    
your saying How to validte the combobox in asp.net ? this is your Question and in your description " window based application." is it windows application or web

1 solution

for windows application,

if(comboBox2.Text=="")
messageBox.Show("Select ComboBox2 First");


write it on click event of first combobox
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900