•
•
•
•
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 428,371 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 3,506 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
Views: 301 | Replies: 1
![]() |
Place one dropdownlistbox and dont forget to give "autopostback=true". A button to set value and a label to show the value. Write the coding as below
You can set the value to combo box items like this... If you got it, plz add to my reputation and mark it as solved.
protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack=False then
ddltest.Items.Add(New ListItem("Plz Select"))
ddltest.Items.Add(New ListItem("One"))
ddltest.Items.Add(New ListItem("two"))
ddltest.SelectedIndex = 0
End ifProtected Sub ddltest_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddltest.SelectedIndexChanged
lbltest1.Text = ddltest.SelectedValue
End SubProtected Sub btntest1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btntest1.Click
ddltest.SelectedItem.Value = Val(ddltest.SelectedItem.Value) + 10
End SubYou can set the value to combo box items like this... If you got it, plz add to my reputation and mark it as solved.
If you got your answer, please mark the thread as Solved.
Thanks & Regards,
RajaRajan. R
rajarajan07@rediffmail.com
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- ComboBox Events (VB.NET)
- Issue related to combobox.... (VB.NET)
- need help with ComboBox (C++, Dialog) (C++)
- Hiding dataitems in a combobox (VB.NET)
- How to use combobox function (C++)
- Filling a ComboBox.... (Java)
Other Threads in the ASP.NET Forum
- Previous Thread: DBO vs MDF -whats the difference?
- Next Thread: FormView and GridView does not appear when i debug


Linear Mode