View previous topic :: View next topic |
Author |
Message |
Don
Joined: 22 Oct 2004 Posts: 28
|
Posted: Mon Nov 15, 2004 11:08 am Post subject: Changing ASP.NET label control text depending on dropdown |
|
|
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 |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Mon Nov 15, 2004 11:13 am Post subject: |
|
|
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 |
|
|
|
|
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
|