User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 397,597 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,875 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

Could someone help me how to add value to A item based on other selected value??(c#)

Join Date: Jan 2008
Location: India
Posts: 147
Reputation: sbv is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
sbv's Avatar
sbv sbv is offline Offline
Junior Poster

Re: Could someone help me how to add value to A item based on other selected value??(

  #8  
Mar 13th, 2008
Originally Posted by hwa View Post
My problem is I want to add in a value to a LABEL based on selected value in the DropDownList !!


Example:

tbl_abc

ID Sequence Name
-----------------------------------------------
1 2 Michael
2 3 Jenny
3 4 Max
4 4 Max
5 2 Michael
6 4 Max
7 3 Jenny
8 5 Alice
-----------------------------------------------

ID-(asp:label)
Sequence-(asp:label)
Name-(aspropDownList)


-If I choose Max from the DropDownList then the Sequence_label will automatically generate the 4.
-If I choose Michael from the DropDownLst then the Sequence_label will automatically generate the 2.


Can anyone help me to solve this problem??

Thanks in advance !!




Hi,

Do you want to assign ID and Sequence values both to the label depending upon the selection of DropDownLst?
As you said here -
ID-(asp:label)
Sequence-(asp:label)
Name-(aspropDownList)
I consider yes.

As i told you in my last post. On DropDownList's selected index change event
you need to do 2 things.
1) fetch ID and Sequence from db depending upon the DropdownLst value
2) Then assign it to your labels.
Accept Challenges and Enjoy Coding... :)
Reply With Quote  
All times are GMT -4. The time now is 6:32 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC