You can use Session state !!
Page 1:
public partial class Extra : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
String S = GridView1.Rows[4].Cells[0].Text;
LBLy.Text = S;
Session["Name"] = S;
}
}
Page 2:
public partial class Default2 : System.Web.UI.Page
{
#region Page Load
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = Session["Name"].ToString();
}
#endregion
}
ScreenShot:
& in your Code you Try "TRY and Catch"
Maybe your Error is due to Null Value
Try
{
YOUR Code
}
Catch (NullReferenceException ee)
{
throw ee;
}