CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums



Zone: > Asp.Net Forum > .net_languages.visual_basic_.net Tags:
Item Type: Date Entered: 1/7/2008 11:52:52 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 116 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages |< << Go >> >|
"boobal" <>
NewsGroup User
dropdownlist7/7/2005 11:10:31 AM

0

Hi
 
   Consider iam having a form in vb.net .The form consist of a dropdownlist box, a label and a button. The values of dropdownlist are "1","2". when  i select value "1" in dropdownlist and clicks the  button  the label should show " god", when  i select value  "2" in dropdownlist and clicks the button the label  should show "red"

plese anybody answer this

 boobal
 
"tmorton" <>
NewsGroup User
Re: dropdownlist7/7/2005 12:55:03 PM

0

This seems to be a winforms question.  If so you will likely have better luck with it at http://www.windowsforms.net/Forums/.

Terri Morton
Program Manager, Telligent

Wissen ist Macht
How to ask a question
"inkaln" <>
NewsGroup User
Re: dropdownlist7/29/2005 5:01:06 PM

0

does this dropdown list using ListItem or just regular array?  Assuming it's an ArrayList, you can check case by case as follows (the code can go in the code-behind for the button click event)

If  ddlIdName.SelectedItem.Text = "1" Then
lblMessage.Text = "god"

ElseIf ddlIdName.Selecteditem.Text = "2" Then
'change the color of the label to red

I don't know if this is what you were asking....

3 Items, 1 Pages |< << Go >> >|



Free Download:






   
  Privacy | Contact Us
All Times Are GMT