im building a site that places galleries within an itemTemplate, each gallery has its own ID, im tring to allow each gallery to have its own "edit" button, this will allow the user to delete or rename the gallery etc. is it possible to make the button ID the same as the gallery ID? then when the button is clicked the ID will be passed to another page that will allow the user to make changes to the gallery. iv tried the following but its not liking it. is there a better way to pass the particular gallery id to another page?
<ItemTemplate> <ul class="thumbnails gallery"> <li class="gallery"> <a style="text-decoration:none;" href="galleryData.aspx?gallery_id=<%#Eval("gallery_id") %>"> <img alt="<%#Eval("gallery_name") %>" style="border:0px;" src="photo_load.aspx?gallery_id=<%#Eval("gallery_id") %>&thumbnail=1" /> <span class="below-image"><%#Eval("gallery_name") %></span> </a> <asp:Button ID="<%=(Request.QueryString["gallery_id"]).ToString() %>" runat="server" onClick="Button1_Click" Visible="true" Text="Edit" /> </li> </ul> </ItemTemplate>
thanks for any replies
Edited by barriegrant1: n/a