.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson
Eminent IT

Home >> Forum >> VB.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Display Result in textbox based on dropdownlist selection

Posted By: Catherine     Posted Date: May 20, 2011    Points:5   Category :VB.Net
hi i would like to display the data in textbox based on dropdownlist selection without button click please tell

Author: Amit Mehra             
Posted Date: May 20, 2011     Points: 20   


You can use the SelectedIndexChanged event of the dropdownlist.. Just double click on the dropdownlist and it will create event for you in code file

Please "Mark As Answer " if this post help you.
Author: Ravishankar       [Moderator]      
Posted Date: May 20, 2011     Points: 20   

Hi Catherine,

Try the below steps:
1.set enableviewset and enable postback properties of dropdownlist to true.
2.OnSelectIndexChanged,set selectedIndex value of Dropdown list to TextBox.

Hope this will help you.Please share if you still have problem.

Ravishankar Singh
Author: Maverick             
Posted Date: May 23, 2011     Points: 20   


You can use onselecindexchaged event to fulfill this requirements.

Hope it helps.

Author: Gowthammanju             
Posted Date: May 23, 2011     Points: 20   

do following steps,

1)enable the dropdown list property as auto postback

click on dropdown press f4 den in that choose autopostback property as true.

2)click on the dropdown list then it will open in a coding page such as

protected void dropdownnae(object sender, EventArgs e)

//in this u write coding as

finally run it

Thanks & Regards,

Mark if the answer is true

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend