When I use <%# Session("copyrightDate") %> on my master page I dont get an error but it does not display anything
When I use <% Response.Write(Session("copyrightDate"))%> on a .aspx page I dont get an error but it does display the date, but I dont want it on a .aspx page that uses the master...I want it to go in the footer of the master page
This is how i delcared the session in the page load event of the master page
'''''' Current date and time.
Dim currDate As Date = Now
''''''Get only the year of the date
Session("copyrightDate") = DatePart(DateInterval.Year, currDate)
-bdot
"There are only 10 kinds of people in this world. Those who understand binary and those who don't"
bdotjones
Member
240 Points
77 Posts
Re: Controls collection Error
Oct 27, 2006 12:43 AM|LINK
When I use <%# Session("copyrightDate") %> on my master page I dont get an error but it does not display anything
When I use <% Response.Write(Session("copyrightDate"))%> on a .aspx page I dont get an error but it does display the date, but I dont want it on a .aspx page that uses the master...I want it to go in the footer of the master page
This is how i delcared the session in the page load event of the master page
'''''' Current date and time.
Dim currDate As Date = Now
''''''Get only the year of the date
Session("copyrightDate") = DatePart(DateInterval.Year, currDate)
"There are only 10 kinds of people in this world. Those who understand binary and those who don't"