How to pass information from page to page [modified]
-
Here is some problems: 1. If i want to pass some information like String from one page to another page what should i do now? 2. If I want to know for how long the client has opened a page how can i get the duration? Such as, if i want to know a client when logged in and when logged out. Thanks ZAMI Zami -- modified at 13:49 Sunday 21st May, 2006
-
Here is some problems: 1. If i want to pass some information like String from one page to another page what should i do now? 2. If I want to know for how long the client has opened a page how can i get the duration? Such as, if i want to know a client when logged in and when logged out. Thanks ZAMI Zami -- modified at 13:49 Sunday 21st May, 2006
-
Here is some problems: 1. If i want to pass some information like String from one page to another page what should i do now? 2. If I want to know for how long the client has opened a page how can i get the duration? Such as, if i want to know a client when logged in and when logged out. Thanks ZAMI Zami -- modified at 13:49 Sunday 21st May, 2006
In addition to this:
Response.Redirect("anotherpager.aspx?string=value")
To get the value ofstring
onanotherpage.aspx
you would use the following:string sometext = Request.QueryString["string"].ToString();
But of course you should make sure that string isn'tnull
first ;) As for #2 you could use this to get when the user logged in:FormsIdentity idn = (FormsIdentity)User.Identity; idn.Ticket.IssueDate; // will get when the users ticket was issued (when he/she logged in)