473,379 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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

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?

Apr 28 '06 #1
2 2551
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).SelectedV alue);

in the OnSelectedIndexChanged event handler.

"Tony Tone" wrote:
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?

Apr 28 '06 #2
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.

"clickon" <cl*****@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
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).SelectedV alue);

in the OnSelectedIndexChanged event handler.

"Tony Tone" wrote:
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?

Apr 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box...
13
by: Leszek Taratuta | last post by:
Hello, I have several drop-down lists on my ASP.NET page. I need to keep data sources of these lists in Session State. What would be the most effective method to serialize this kind of data...
3
by: Stephen Adam | last post by:
Hi there, I'm sure i'm missing something really simple here, all i want to do is get the value of the selected item in a list box. Even after much fiddling about last night I still could not get...
5
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1);...
4
by: Laura K | last post by:
I have a drop down menu which has a list of subcategories and the initial value is "please choose a Subcategory". When the user chooses a subcategory they are taken to a new page where the drop...
0
by: Tony Tone | last post by:
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?
5
by: mc | last post by:
I've got three controls on a page a Drop Down List, a List Box and a Button I've added 3 items to the Drop Down List I have added some code in the Button onClick Event Handler, as below...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
2
by: Doug | last post by:
Hi, I can't figure out how to create a drop-down list box. The help file says it exists. The icon in the help file matches the combobox in the toolbox. I tried using a combox box, both with and...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.