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?
 
G

Guest

Well you can't because you can't put hyperlinks in an HTML drop down box (a
<select> tag). However you can navigate to a URL, based on the selection a
user makes in a DDL by having URL's for the value fields, setting
AutoPostBack=true in the DDL properties and then put something like

Response.Redirect(((DropDownList)sender).SelectedValue);

in the OnSelectedIndexChanged event handler.
 
M

Marina Levit [MVP]

Well, you can't using the built in one.

You can write your own. Have it pop open a DIV that you position, that has
the links in it, etc. This is a ton of work, but it can be done.
 

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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top