Hi t01714500930,
Check this example. Now please take its reference and correct your code.
HTML
Page1
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<p>
<br />
<asp:Label ID="Label2" runat="server" ></asp:Label>
</p>
</asp:Content>
Page2
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<p>
<br />
<asp:Label ID="Label3" runat="server" ></asp:Label>
</p>
</asp:Content>
Code
C#
Page1
protected void Page_Load(object sender, EventArgs e)
{
Label2.Text = "8777";
Session["Label2"] = Label2.Text;
}
Page2
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Label2"] != null)
{
Label3.Text = Session["Label2"].ToString();
}
}
VB.Net
Page1
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Label2.Text = "8777"
Session("Label2") = Label2.Text
End Sub
Page2
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
If Session("Label2") IsNot Nothing Then
Label3.Text = Session("Label2").ToString()
End If
End Sub
Screenshot