Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to pass information from page to page [modified]

How to pass information from page to page [modified]

Scheduled Pinned Locked Moved ASP.NET
questiontutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zami_2
    wrote on last edited by
    #1

    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

    D S 2 Replies Last reply
    0
    • Z Zami_2

      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

      D Offline
      D Offline
      dadax_85
      wrote on last edited by
      #2

      1-Response.Redirect("anotherpager.aspx?string=value") DADAX

      1 Reply Last reply
      0
      • Z Zami_2

        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

        S Offline
        S Offline
        Sean89
        wrote on last edited by
        #3

        In addition to this: Response.Redirect("anotherpager.aspx?string=value") To get the value of string on anotherpage.aspx you would use the following: string sometext = Request.QueryString["string"].ToString(); But of course you should make sure that string isn't null 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)



        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups