how to pass datetime in session value to next page
Posted
by SmartDev
on Stack Overflow
See other posts from Stack Overflow
or by SmartDev
Published on 2010-04-21T00:04:57Z
Indexed on
2010/04/21
0:13 UTC
Read the original article
Hit count: 493
Hi ,
I have textbox which is a date field . i need to store that in a session and pass that value to another page . im using sessions for that .
can anyone tell how to convert it to date time and pass in a session .
Example:
Session["startdate"] = Convert.ToDateTime(textbox1.Text);
is this the rite way.
Thanks Sachin
© Stack Overflow or respective owner