You can't exactly put hyperlinks in the list, but you could redirect
to a URL depending on what item the user has select in the control.
For example, if the following was in a web form:
<asp:DropDownList id="DropDownList1" runat="server">
<asp:ListItem Value="http://msdn.microsoft.com"
Selected="True">MSDN
</asp:ListItem>
<asp:ListItem Value="http://www.asp.net">ASP.Net
</asp:ListItem>
<asp:ListItem Value="http://www.google.com">Google
</asp:ListItem>
</asp:DropDownList>
<asp:Button id="Button1" runat="server" Text="Go"/>
Then you could add an event handler for the button click event and do
the following:
private void Button1_Click(object sender, System.EventArgs e)
{
Response.Redirect(DropDownList1.SelectedValue);
}
HTH,
--
Scott
http://www.OdeToCode.com
On Wed, 5 May 2004 07:51:03 -0700, "Paul"
<an*******@discussions.microsoft.com> wrote:
Just wondering if there is a way to set up hyperlinks in a drop down list, so each item in the dropdown list navigates to a different page.