Link to home
Start Free TrialLog in
Avatar of mitesh114
mitesh114

asked on

Dropdownlist selecting an item in the list

Hi, I have a dropdown list.  I am bounding this to a sharepoint list. All I want to do is be able to select one of the items in the dropdown and it to take me to the respective page.  How do I achieve this?

Thanks
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

What do you mean with goto respective page ? Does it show names of webpages, ... ?

Look at the following event
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
              System.Windows.Forms.MessageBox.Show (comboBox1.SelectedText);
        }
Avatar of mitesh114
mitesh114

ASKER

Yes, it's a list of web page names and I pass their URL's as well. so I want to pick up the URL and get it to send to the page the user selects in the dropdownlist.
       private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
              Response.Redirect (comboBox1.SelectedText);
        }
Thanks.  What I need is to pass through a description to display in the dropdown like this:
dlQuickLinks.Items.Add(Description)
I want to pass through the URL from the list as the value or  the unique identifier and then onchange do the redirect as you have showed above.  how would I do this?
ASKER CERTIFIED SOLUTION
Avatar of CGI_PortalPractice
CGI_PortalPractice

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks for your help guys