Hi
I am using a RADBUTTON in the itemtemplate of Radlistview.
Kindly let me know how to add the click-event for that RADbutton on server-side and perform the below operations
1) While clicking the RADBUTTON, : Need to store the bookid of the selected item in the Session
2) Then redirect to cartpage.aspx (After storing the id in the session)
Pls guide how to achieve this scenario
<telerik:RadListView ID="RadListView1" runat="server" ItemPlaceholderID="ProductItemContainer"
DataKeyNames="BookID" OnNeedDataSource="RadListView1_NeedDataSource" >
<LayoutTemplate>
<fieldset>
<table>
<tr>
<td>
<asp:Panel ID="ProductItemContainer" runat="server">
</asp:Panel>
</td>
</tr>
</table>
</fieldset>
</LayoutTemplate>
<ItemTemplate>
<fieldset>
<table>
<tr>
<td class="productItem">
<a href="default2.aspx?isbn=<%# Eval("BookID")%>">
<img src="<%# Eval("imageurl")%>" alt="#= BookName #" />
</a>
</td>
</tr>
<tr>
<td>
<%# Eval("BookName")%>
</td>
</tr>
<tr>
<td>
<telerik:RadButton CommandName="Button1" ID="BtnAddtoCart" runat="server" Text="Add to Cart"></telerik:RadButton>
</td>
</tr>
</table>
</fieldset>
</ItemTemplate>
</telerik:RadListView>