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. Passing Large Amounts Of Text From One Page To Another

Passing Large Amounts Of Text From One Page To Another

Scheduled Pinned Locked Moved Web Development
question
4 Posts 4 Posters 29 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.
  • U Offline
    U Offline
    User 2392
    wrote on last edited by
    #1

    Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?

    T C 2 Replies Last reply
    0
    • U User 2392

      Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?

      T Offline
      T Offline
      Tom Wellige
      wrote on last edited by
      #2

      You can use Session Variables for this but they only work if the user's browser accept cookies (at least session cookies). Using session variables is quite simple: - putting value (on one page) Session("SomeString") = "This is a long long text" - getting value (on another page) Response.Write(Session("SomeString")) Regards, Tom ================== The original message was: Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?

      L 1 Reply Last reply
      0
      • T Tom Wellige

        You can use Session Variables for this but they only work if the user's browser accept cookies (at least session cookies). Using session variables is quite simple: - putting value (on one page) Session("SomeString") = "This is a long long text" - getting value (on another page) Response.Write(Session("SomeString")) Regards, Tom ================== The original message was: Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        It depends. Are you passing the information through a hyperlink or through a form? If you are passing it through a hyperlink, then what Tom mentioned will work. However, if it is through a FORM, then use Request.Form(Field Name) and set your FORM METHOD to POST. Hope it helps, Tobey ================== The original message was: You can use Session Variables for this but they only work if the user's browser accept cookies (at least session cookies).

        Using session variables is quite simple:

        - putting value (on one page)

        Session("SomeString") = "This is a long long text"

        - getting value (on another page)

        Response.Write(Session("SomeString"))

        Regards, Tom
        ==================
        The original message was:

        Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?

        1 Reply Last reply
        0
        • U User 2392

          Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          I guess another way of doing this is by using a hidden input field in a form, and having the form action as the URL of the page you want to send the data to. If you don't like having links to other pages show up as buttons then you can have the submit button as an image to make it look a little nicer...

          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