passing values to pages
<p>What i am trying here is to pass values to other pages. When i include the following code</p>

<pre><code>private void Button1_Click(object sender, System.EventArgs e)
{

    Response.Redirect("WebForm5.aspx?Name="+txtName.Text);
}

if (Request.QueryString["Name"]!= null)
    Response.write( Request.QueryString["Name"]);
</code></pre>

<p>everything works fine the name gets displayed. Now if use <strong>MemberId</strong> instead, though i can see the Id in the Url, but while checking for Null in other page, its true i.e. 
 if (Request.QueryString["MemberId"]!= null)
Response.write( Request.QueryString["MemberId"]); doesnt gets printed. Whats wrong??</p>

<p>Now I tried the same thing using session i.e.</p>

<pre><code>Session["MemberId"] = this.TxtEnterMemberId.Text;

if (MemberSex.Equals("M"))
    Response.Redirect("PatientDetailsMale.aspx",false );
</code></pre>

<p>Page_load event of the other page</p>

<pre><code>if (Session["MemberId"] != null)
    mid = Session["MemberId"].ToString();
</code></pre>

<p>IT Works..Could u guys explain the behaviour please?</p>

<p>P.S. Can anyone give a breif in layman words about SessionId and its usage.</p>

<p>Thanking you,</p>

<p>Indranil</p>
