Click here to Skip to main content
15,920,633 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
I have an ASP.NET webform on which I use a DropDownList control as searchby

i also have 3 labels & 3 textboxes such as enter Quotation number,enter quote date,enter customer code..... when the user selects one item from dropdown, first textbox should be displayed and the other two text boxes must hide.

---------------------------------------------------------------------------------
Aspx-design page

Search by -- Dropdownlist

Enter Quote Number -- Textbox
Enter Quote Date -- Textbox
Enter Customer Code - Textbox

Submit Button

--------------------------------------------------------------------------------

Suppose when user enters id number 1001 into textbox and clicks on submit button the data should be searched from the database and should be displayed by using gridview.
Posted
Comments
Herman<T>.Instance 23-Aug-11 8:47am    
and what is your problem? Where you get stuck? what have you tried?
Syed SufiyanUddin 23-Aug-11 8:50am    
I stucked in..., when i enters the id number 1001 into first textbox it doesnot searches and gridview doesnot displays the records.....please help me. how to write the code for this please please help me.
Syed SufiyanUddin 23-Aug-11 8:52am    
Please help me how to write the code for this............i dont understand.
Syed SufiyanUddin 23-Aug-11 8:58am    
Please i need answer urgent
Herman<T>.Instance 23-Aug-11 10:11am    
always urgent. urgent answer can be found in google by typing the right question!

1 solution

Only use a single label and text box.
When the user selects an option, update the label text. Simples.
 
Share this answer
 

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