I have a repeater as follows:
<asp:Repeater ID="rptResultItem" runat="server" OnItemCommand="Button_Clic
Within the temlpate of the repeater, I have multiple panels which have their visible property set according to some logic based on a databound value.
Withni each of these panels, I have the following asp:buttons:
<asp:Button Text="Add to basket" CommandArgument='<%#Contai
em("id") %>' CommandName="Add_To_Basket
" runat="server" />
The sub below is a bit garbled - how do I need to rewrite it to get the ID value into the redirect string?
Sub Button_Click(ByVal s As Object, ByVal e As RepeaterCommandEventArgs)
Dim strRedirect As String
If e.CommandName = "Add_To_Basket" Then
strRedirect = "test.aspx?id=" & e.Item.Controls( 1).CommandArgument