passing date values between forms
-
I am unable to display a short-date value passed from a previous page. What's wrong with this syntax?? 'Sending page Context.Items.Add( "Usage_start_Date", lblStartDate.Text ) server.transfer( "appEdit.aspx", true ) 'Receiving page 'On page load I assign a date value to a text box: txtStartDate.text = Context.Items("Start_Date") 'html Thanx
-
I am unable to display a short-date value passed from a previous page. What's wrong with this syntax?? 'Sending page Context.Items.Add( "Usage_start_Date", lblStartDate.Text ) server.transfer( "appEdit.aspx", true ) 'Receiving page 'On page load I assign a date value to a text box: txtStartDate.text = Context.Items("Start_Date") 'html Thanx
Hi, Should this not be:
'Sending page
Session["Usage_start_Date"] = lblStartDate.Text
server.transfer( "appEdit.aspx", true )
'Receiving page
'On page load I assign a date value to a text box:txtStartDate.text = Session["Usage_start_Date"]
Hope this helps, Andy
-
Hi, Should this not be:
'Sending page
Session["Usage_start_Date"] = lblStartDate.Text
server.transfer( "appEdit.aspx", true )
'Receiving page
'On page load I assign a date value to a text box:txtStartDate.text = Session["Usage_start_Date"]
Hope this helps, Andy
HI Andy, Your suggestion is equally usable and it's actually less typing than the one I used, but in this case my problem was a typo: I had "Usage_start_Date" on my sending page and "Usage_Start_Date" on my receiving page, and since case sensitivity is crucial that small 's' in 'start' caused it not to assigned. Thanx for your input. b-d