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 values from one page to other page in post mechanism ?

how to pass values from one page to other page in post mechanism ?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasetutorialquestion
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.
  • K Offline
    K Offline
    King Shez
    wrote on last edited by
    #1

    hi how to pass values from one page to the other page in post mechanism in ASP.NET i know how to pass val;ue by get mechanism in which we pass in query string and fetch through Request.GetQueryString["ValuePassedinQuerystring"], but how can we do it through post mechnism, i should be very thankful if any one can provide me the code snippet for it, thankx in advance, regards,

    J N 2 Replies Last reply
    0
    • K King Shez

      hi how to pass values from one page to the other page in post mechanism in ASP.NET i know how to pass val;ue by get mechanism in which we pass in query string and fetch through Request.GetQueryString["ValuePassedinQuerystring"], but how can we do it through post mechnism, i should be very thankful if any one can provide me the code snippet for it, thankx in advance, regards,

      J Offline
      J Offline
      John Gathogo
      wrote on last edited by
      #2

      If you dont want to put the values you are passing to the next page on the query string, then you may have to use save them in session

      1 Reply Last reply
      0
      • K King Shez

        hi how to pass values from one page to the other page in post mechanism in ASP.NET i know how to pass val;ue by get mechanism in which we pass in query string and fetch through Request.GetQueryString["ValuePassedinQuerystring"], but how can we do it through post mechnism, i should be very thankful if any one can provide me the code snippet for it, thankx in advance, regards,

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        If you are using cross page posting, then you can find controls in previous page and get it's values. Assume you have a textbox in previous page with id as txt, value of this textbox can be taken by TextBox txt = (TextBox)Page.PreviousPage.FindControl("txt") All posted values will be available in Request.Forms collection.

        Navaneeth How to use google | Ask smart questions

        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