ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Changing ASP.NET label control text depending on dropdown

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#)
View previous topic :: View next topic  
Author Message
Don



Joined: 22 Oct 2004
Posts: 28

PostPosted: Mon Nov 15, 2004 11:08 am    Post subject: Changing ASP.NET label control text depending on dropdown Reply with quote

Hi,

I'm developing ASP.NET application.

How I can change the text in a label ASP.NET control based on what the user selects from a dropdown list?



Thanks,

Don
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Mon Nov 15, 2004 11:13 am    Post subject: Reply with quote

Hi Don,

Put the following code, in the sub-routine that handles the onchange event for the dropdown box:

Code:

lblYourLabel.Text = ddlYourDropDownList.SelectedValue





Cheers,
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial