Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turn ListItem into Link

Status
Not open for further replies.

Gill1978

Programmer
Jun 12, 2001
277
GB
Hi,

I'm trying to turn a checkbox listItem into a hyperlink which will open the document when the users clicks it.
Does anyone know how to do this ... i've tried puttin a hyperlink tag around the text but this didn't work.
Here's what I have:

Code:
    <asp:CheckBoxList AutoPostBack="true" ID="CheckBoxList1" runat="server"  OnSelectedIndexChanged="Blue" Width="212px" >
        <asp:ListItem Text="Presentation 1" Value="V:/projects/JG/PitchBook/PitchBook/Presentations/Test1.ppt"></asp:ListItem>
        <asp:ListItem Text="Presentation 2" Value="V:/projects/JG/PitchBook/PitchBook/Presentations/Test2.ppt" />
    </asp:CheckBoxList>

Thanks for any help ...

Julie
 
<asp:CheckBoxList AutoPostBack="true" ID="CheckBoxList1" runat="server" Width="212px" >
<asp:ListItem Value="V:/projects/JG/PitchBook/PitchBook/Presentations/Test1.ppt"><a href="V:/projects/JG/PitchBook/PitchBook/Presentations/Test1.ppt">Presentation 1</a></asp:ListItem>
<asp:ListItem Value="V:/projects/JG/PitchBook/PitchBook/Presentations/Test2.ppt"><a href="V:/projects/JG/PitchBook/PitchBook/Presentations/Test2.ppt">Presentation 2</a></asp:ListItem>
</asp:CheckBoxList>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top