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, 3:44 AM
    • Posts 130

    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,256

    Case sensitivity problem

    change your code to 

    string mystring= "";

    Session["badisID"] = "value";

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

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

     }

    Kamran Shahid(MCSD.NET)
    Sr. Software Engineer
    Netprosys Inc.
    www.netprosys.com
    Microsoft Gold Certified Partner


    Please remember to click "Mark as Answer" on the post that helps you
  • Re: Sessions Case Sesssion !????

    7 hours, 6 minutes ago
    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 click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (3 items)