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. transfer input value to another page

transfer input value to another page

Scheduled Pinned Locked Moved Web Development
6 Posts 5 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.
  • I Offline
    I Offline
    idsanjeevjha
    wrote on last edited by
    #1

    how can transfer inputed on another page

    sanjeev

    M P M A 4 Replies Last reply
    0
    • I idsanjeevjha

      how can transfer inputed on another page

      sanjeev

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      1. You can transfer by passing them as a parameters.. For example: http://yourdomain.com?input1=1&input2=2 2. You can store your data in Session object or Cache and retrieve them from other page.. 3. if your data is so small, you can store it in cookies. 3. If you are using the silverlight, you can use the managed stroage that has more capacities than cookies. (I think 1 M or something)

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      1 Reply Last reply
      0
      • I idsanjeevjha

        how can transfer inputed on another page

        sanjeev

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        You can use cookies, session variables, form values, just to name a few...

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        1 Reply Last reply
        0
        • I idsanjeevjha

          how can transfer inputed on another page

          sanjeev

          M Offline
          M Offline
          Manikandan net
          wrote on last edited by
          #4

          Just to submit values from one page to another DON’T USE cookies, session, or cache, these items will occupy your server memory. Assume if 1000 users logged in to your application, then your IIS will be very slow. Use the EnableViewStateMac="false" page directive to the target page, which will allow you to get the values from the submitted page. Bellow is the sample code, I am send values from default2.aspx to default3.aspx Default2.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server" **onsubmit="this.action='default3.aspx'**"> <div> <input type="text" name="input1" /> <input type="submit" value="submit" /> </div> </form> </body> </html> Default3.aspx <%@ Page Language="C#" **EnableViewStateMac="false"** AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <%Response.Write(Request["input1"]); %> </div> </form> </body> </html>

          Manikandan.net [Coding is life]

          1 Reply Last reply
          0
          • I idsanjeevjha

            how can transfer inputed on another page

            sanjeev

            A Offline
            A Offline
            arunkumarv
            wrote on last edited by
            #5

            use session

            I 1 Reply Last reply
            0
            • A arunkumarv

              use session

              I Offline
              I Offline
              idsanjeevjha
              wrote on last edited by
              #6

              how can store in sassion and call on next page to this session any detail thanks in advance

              sanjeev

              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