How do I create a Drop Down List with Hyperlinks as List Items in ASP.NET

T

Tony Tone

Hey Guys,

I am trying to create a DropDownList with Hyperlinks as ListItem. I am
creating a web page with ASP.NET and VB


Any suggestions or Solutions to my problem?
 
N

Nathan Sokalski

I don't think you can actually make a ListItem into a HyperLink, but what
you could do is set AutoPostBack=True and set the ListItem's Value property
equal to the URL you want to go to. Then in the event handler use a
Response.Redirect to send them to that URL. If you have any trouble with
this, let me know and I will do what I can to help. Good Luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,592
Members
45,103
Latest member
VinaykumarnNevatia
Top