473,396 Members | 1,773 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,396 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 2553
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.