Andy Green
asked on
ASP.net listbox - jump to URL
Hi Experts
New to ASP.NET2 so forgive a silly question.
I have a listbox control, databound to an underlying class for its data. What I want to do is open link based on the ID of the item in the list box.
Google dosn't have the answer.
Andy
New to ASP.NET2 so forgive a silly question.
I have a listbox control, databound to an underlying class for its data. What I want to do is open link based on the ID of the item in the list box.
Google dosn't have the answer.
Andy
ASKER
Hi
Yes I can capture that event, but how do I then jump to a URL. I guess I can append the selected index to the querystring, or is there another way in ASP.net.
Andy
Yes I can capture that event, but how do I then jump to a URL. I guess I can append the selected index to the querystring, or is there another way in ASP.net.
Andy
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
That is an example for a dropdown, but a listbox should work the same way.
ASKER
Thanks Dusion,
I'd already figure the dropdown / listbox thing.
ANdy
I'd already figure the dropdown / listbox thing.
ANdy
You can get the selectedValue using ListboxName.SelectedValue
eg response.redirect(ListBox1