Sessions Case Sesssion !????

Last post 05-15-2008 10:51 PM by Benson Yu - MSFT. 2 replies.

Sort Posts:

  • Sessions Case Sesssion !????

    05-11-2008, 11:58 PM
    • Loading...
    • rbadis
    • Joined on 04-23-2007, 7:44 AM
    • Posts 141

    I don't know but I must have some thing wrog in my VS.Net system, because in my system Session["RegisterID"]=Session["RegistedId"].

    So, could you try this bit of code in a sample form:

    string mystring= "";

    Session["badisID"] = "value";

    if(Session["badisId"]!=null)

    mystring=Session["badisId"].ToString();

    you will see that mystring="value"

     

    Thanks. 

     

    badis
  • Re: Sessions Case Sesssion !????

    05-12-2008, 2:27 AM
    • Loading...
    • kamii47
    • Joined on 05-26-2005, 12:04 PM
    • Karachi, Pakistan
    • Posts 1,520

    Case sensitivity problem

    change your code to 

    string mystring= "";

    Session["badisID"] = "value";

    if(Session["badisID"]!=null)

    mystring=Session["badisID"].ToString();

     }

    Kamran Shahid(MCSD.NET,MCPD.net[web])
    Sr. Software Engineer
    Netprosys Inc.
    www.netprosys.com

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Sessions Case Sesssion !????

    05-15-2008, 10:51 PM
    Answer

    Hi rbadis,

    This case-insensitive behavior is by design. I have answered it in your previous post. This duplicate thread will be closed. Thanks.

    Sessions
    http://forums.asp.net/t/1257716.aspx

     

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
Page 1 of 1 (3 items)