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. passing parameters using POST from an ASPX page to different page

passing parameters using POST from an ASPX page to different page

Scheduled Pinned Locked Moved ASP.NET
csharpsysadmintutorialquestion
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.
  • S Offline
    S Offline
    shabya
    wrote on last edited by
    #1

    hello, i want to pass parameters in a POST mode from a .NET page to other page. i heared about : Server.Transfer("xxx.asp",true); can i have guidelines on how to use it ? tnx in advance , avi

    P 1 Reply Last reply
    0
    • S shabya

      hello, i want to pass parameters in a POST mode from a .NET page to other page. i heared about : Server.Transfer("xxx.asp",true); can i have guidelines on how to use it ? tnx in advance , avi

      P Offline
      P Offline
      pra chaudhari
      wrote on last edited by
      #2

      Server.Transfer("xxx.asp?paramname=paramvalue",true); and your xxx.aspx page_load event read parameter value like Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dim str as string=Request.QueryString("paramname") End Sub i thing is helpful :laugh:

      B 1 Reply Last reply
      0
      • P pra chaudhari

        Server.Transfer("xxx.asp?paramname=paramvalue",true); and your xxx.aspx page_load event read parameter value like Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dim str as string=Request.QueryString("paramname") End Sub i thing is helpful :laugh:

        B Offline
        B Offline
        binarymax
        wrote on last edited by
        #3

        This is true and probably sufficient for many cases, but be aware you are changing from POST to GET and then have the limitations of the querystring, such as: maximum of 2083 characters in the URI(This is IE, not sure for FF/Opera/other), and of course there are potentially security risks if you are sending any sensitive data it will be shown and can be easily altered by the end user. If you are trying a to re-post without relying on the querystring to a different page in your application there are probably workarounds (maybe by populating fields on an intermediate page, or manually building a response...then having one of them autopost to your ultimate target?) But I have never tried these before.

        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