Dear Richard
The codes are as following:
I tried to use server side page_load to get Session Data first, and then assign the data to Label lblTesting. This is successful, The value is displayed on Lable.
The codebehind codes are as following:
protected void Page_Load(object sender, EventArgs e)
{
string comingStr = Convert.ToString(Session["Transfer"]);
if (comingStr != null)
{
lblTesting.Text = comingStr;
}
else
{
lblTesting.Text = "Not Coming";
}
}
But when I tried to use client side javascript to get the Session Data by document.getElementById("lblTesting").value and then displaied on html input control or on Label control, Its' failed. The page codes are as following:
I also tried to let the client side received the Session data directly. The javascript codes are as following:
Its'failed again.