locked
create session RRS feed

  • Question

  • Hi ev1

    my question is that

    i have 3 texbox 1 dropdown list and 1 listbox like that

    textbox1.text

    textbox2.text

    textbox3.text

    textbox4.text

    dropdown list

    lstbox

    if user put values in these field all values store in session on page load. how can create session plz help

    • Moved by Bob Wu-MT Monday, June 4, 2012 7:22 AM asp.net issue (From:Windows Forms General)
    Tuesday, May 29, 2012 4:09 AM

All replies

  • if you mean session in asp.net :

    session["namesession"]=Textbox1.text+Textbox2.text+Textbox3.text+TextBox4.text+dropdownlist.selectvalue+listbox.selectvalue;

    namessesion is name you put for session name

    you also can separated for each control example :

    session["Text1"]=textbox1.text;
    session["Text2"]=textbox2.text

    for write session : example

    response.write(session["namesession"]);

    learning session in asp.net : http://msdn.microsoft.com/en-us/library/87069683(v=VS.85).aspx


    Article For C# in http://csharpme.blog.com


    Tuesday, May 29, 2012 8:07 AM