in a similar case, anyone helps
in aspx file:
<%= SessionLengthMinutes %> minute(s), <%=Session["name"] %>
in aspx.cs:
public int SessionLengthMinutes { get { return Session.Timeout; } }
I declared it public, although it could not access the aspx.cs elements in the aspx file.
thanks
source share