Passing Value from one Gridview to another page Gridview
<p>Hello mates i have a page View All Applicants.aspx with gridview and a link button </p>

<p>i want to redirect to page View Applicant Detail.aspx when i click on link button and i want to show data in gridview on View Applicant Detail.aspx page based on the previous page values.</p>

<p>here is the code for View All Applicants.aspx</p>

<pre><code>    &lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="View All Applicants.aspx.cs" Inherits="_Default" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;&lt;center&gt;
        &amp;nbsp;&lt;/center&gt;
        &lt;center style="background-color: silver"&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &lt;strong&gt;&lt;span style="font-size: 16pt"&gt;List of All Applicants&lt;/span&gt;&lt;/strong&gt;&lt;/center&gt;
        &lt;center style="background-color: silver"&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowPaging="True"
                &gt;
                &lt;Columns&gt;
                    &lt;asp:BoundField DataField="PersonName" HeaderText="PersonName" SortExpression="PersonName" /&gt;
                    &lt;asp:BoundField DataField="DegreeName" HeaderText="DegreeName" SortExpression="DegreeName" /&gt;
                    &lt;asp:BoundField DataField="InstituteName" HeaderText="InstituteName" SortExpression="InstituteName" /&gt;
                    &lt;asp:BoundField DataField="ExperienceYears" HeaderText="ExperienceYears" SortExpression="ExperienceYears" /&gt;
                    &lt;asp:BoundField DataField="OrganizationName" HeaderText="OrganizationName" SortExpression="OrganizationName" /&gt;
                    &lt;asp:BoundField DataField="Designation" HeaderText="Designation" SortExpression="Designation" /&gt;
                    &lt;asp:TemplateField HeaderText="Applicant Detail"&gt;
                        &lt;ItemTemplate&gt;
                            &lt;asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Cancel"
                                OnClick="LinkButton1_Click" Text="View"&gt;&lt;/asp:LinkButton&gt;
                        &lt;/ItemTemplate&gt;
                    &lt;/asp:TemplateField&gt;
                &lt;/Columns&gt;
            &lt;/asp:GridView&gt;
            &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ConnectionString8 %&gt;"
                ProviderName="&lt;%$ ConnectionStrings:ConnectionString8.ProviderName %&gt;" SelectCommand="SELECT Distinct PERSONALDETAIL.PersonName, DEGREE.DegreeName, INSTITUTE.InstituteName, EXPERIENCE.ExperienceYears, EXPERIENCE.OrganizationName, EXPERIENCE.Designation FROM EXPERIENCE, EXPERIENCE EXPERIENCE_1, PERSONALDETAIL, DEGREE, INSTITUTE WHERE EXPERIENCE.ExperienceID = EXPERIENCE_1.ExperienceID"&gt;
            &lt;/asp:SqlDataSource&gt;
        &lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center style="background-color: silver"&gt;
            &amp;nbsp;&lt;/center&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and for View Applicant Detail.aspx</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="View Applicant Detail.aspx.cs" Inherits="_Default" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;&lt;center&gt;
        &amp;nbsp;&lt;/center&gt;
        &lt;center style="background-color: silver"&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &lt;strong&gt;&lt;span style="font-size: 16pt"&gt;Job Applicant Detail&lt;/span&gt;&lt;/strong&gt;&lt;/center&gt;
        &lt;center style="background-color: silver"&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ResumeID"
                DataSourceID="SqlDataSource1"&gt;
                &lt;Columns&gt;
                    &lt;asp:BoundField DataField="ResumeID" HeaderText="ResumeID" InsertVisible="False"
                        ReadOnly="True" SortExpression="ResumeID" /&gt;
                    &lt;asp:BoundField DataField="TotalExperienceYears" HeaderText="TotalExperienceYears"
                        SortExpression="TotalExperienceYears" /&gt;
                    &lt;asp:BoundField DataField="TotalExperienceMonths" HeaderText="TotalExperienceMonths"
                        SortExpression="TotalExperienceMonths" /&gt;
                    &lt;asp:BoundField DataField="ExperienceSummary" HeaderText="ExperienceSummary" SortExpression="ExperienceSummary" /&gt;
                    &lt;asp:BoundField DataField="DetailedCVName" HeaderText="DetailedCVName" SortExpression="DetailedCVName" /&gt;
                    &lt;asp:BoundField DataField="AdditionalQualification" HeaderText="AdditionalQualification"
                        SortExpression="AdditionalQualification" /&gt;
                    &lt;asp:BoundField DataField="ExtraCurricular" HeaderText="ExtraCurricular" SortExpression="ExtraCurricular" /&gt;
                    &lt;asp:BoundField DataField="Skills" HeaderText="Skills" SortExpression="Skills" /&gt;
                    &lt;asp:BoundField DataField="TentativeFromDate" HeaderText="TentativeFromDate" SortExpression="TentativeFromDate" /&gt;
                    &lt;asp:BoundField DataField="PageIndex" HeaderText="PageIndex" SortExpression="PageIndex" /&gt;
                    &lt;asp:BoundField DataField="PersonalDetailID" HeaderText="PersonalDetailID" SortExpression="PersonalDetailID" /&gt;
                    &lt;asp:BoundField DataField="DepartmentID" HeaderText="DepartmentID" SortExpression="DepartmentID" /&gt;
                    &lt;asp:BoundField DataField="DesignationID" HeaderText="DesignationID" SortExpression="DesignationID" /&gt;
                &lt;/Columns&gt;
            &lt;/asp:GridView&gt;
            &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ConnectionString5 %&gt;"
                ProviderName="&lt;%$ ConnectionStrings:ConnectionString5.ProviderName %&gt;" SelectCommand="SELECT * FROM [RESUME]"&gt;
            &lt;/asp:SqlDataSource&gt;
        &lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center&gt;
            &amp;nbsp;&lt;/center&gt;
        &lt;center style="background-color: silver"&gt;
            &amp;nbsp;&lt;/center&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
