Answered by:
Session not holding textbox value

Question
-
User1727432505 posted
i use an ajax to put date into a textbox, when i then hold the value of the texbox(i mean the date) into a session it will return empty value. any suggestion plz.
Sunday, December 9, 2012 4:15 AM
Answers
-
User1727432505 posted
it's now working. it's not working because the textbox that hold the date was read only- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 10, 2012 3:36 AM
All replies
-
User-574293449 posted
can you show your code
Sunday, December 9, 2012 4:17 AM -
User1727432505 posted
not working, that's exactly what i did.
this is my code
Session["dateOfBirth"] = txtDateOfBirth.Text;
lblDateOfBirth.Text = Session["dateOfBirth"].ToString();Sunday, December 9, 2012 4:44 AM -
User-383688373 posted
That code you pasted should work fine.
Check there might be something wrong somewhere.
Sunday, December 9, 2012 8:28 AM -
User1727432505 posted
it's now working. it's not working because the textbox that hold the date was read only- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, December 10, 2012 3:36 AM -
User-861818263 posted
if text boix is read only, then you can not assign date directly to text box.
Please check :-
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx
Monday, December 17, 2012 5:41 AM