I have to get the multiple records from the gridview and store it in the session. Can any one send the coding for this? Its very urgent
View Complete Post
I have a gridview and a checkbox. I am able to pass the checkbox id to a textbox in the same page. This is then passed as a session variable. However, when I place an option to page and select the checkbox items in the next page, the session variable resets.
Please see below code, how do I store "all checkbox" throughout all paging and store it in the session page?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
<form id="form1" runat="server">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
BorderStyle="Solid" CellPadding="4" DataKeyNames="Categoryid"
BorderColor="Silver" BorderWidth="1px" Width="300px"
We are developing a website in which we have a gridview where we have added a hyperlink field to navigate to another web form. Here we have to enter a particular value from the gridview to session in order to display it in another web form as a label.
As we are bit new using .Net, could any of you guys please help us in finding a solution.
Thanks and Regards,