![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm currently writing a webpage that lists photos dynamically. Depending on what was selected in the page previous, these photos will change. What I'd like to do it to have the user click on a photo and for that to pull up another page associated with that photo. I can't figure out how to make this happen, however. Here's my html referring to the imagebutton: asp ataList ID="DataList1" runat="server"AlternatingItemStyle BackColor="#FFFFCC"></AlternatingItemStyle ItemStyle BackColor="White"></ItemStyle ItemTemplate table border="0" cellpadding="2" cellspacing="0" class="Normal" tr td asp:Imagebutton ID="imgPhotoGallery" ImageUrl='<%# Container.DataItem %>' Runat="Server" / /td /tr /table /ItemTemplate /asp ataListAnd I can't seem to get this to attach to any function in the corresponding .aspx file. I initially thought it would be this function: Protected Sub DataList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataList1.SelectedIndexChanged Dim sRedirect As String 'go to edit page sRedirect = "Photo_Edit.aspx" Server.Transfer(sRedirect) End Sub But that doesn't seem to work. Please help! |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |