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. ASP.net postback url problem

ASP.net postback url problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
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.
  • U Offline
    U Offline
    UDTWS
    wrote on last edited by
    #1

    hi, i have this code and this code not working properly code in one.aspx

    Code in AcData.aspx

    string k = ((HiddenField)PreviousPage.FindControl("hfDistrict")).Value;

    also try this code

    string DistrictN1 = Request.Form["hfDistrict"]

    but i did not get value from previous page actually we need to remove querystring from old code and not want to use session and we are try to use postbackurl to pass value from one.aspx to AcData.aspx. what is the exact problem i was doing and what will be the solution. plz provide solution thanks and regrds

    V J 2 Replies Last reply
    0
    • U UDTWS

      hi, i have this code and this code not working properly code in one.aspx

      Code in AcData.aspx

      string k = ((HiddenField)PreviousPage.FindControl("hfDistrict")).Value;

      also try this code

      string DistrictN1 = Request.Form["hfDistrict"]

      but i did not get value from previous page actually we need to remove querystring from old code and not want to use session and we are try to use postbackurl to pass value from one.aspx to AcData.aspx. what is the exact problem i was doing and what will be the solution. plz provide solution thanks and regrds

      V Offline
      V Offline
      Vincent Maverick Durano
      wrote on last edited by
      #2

      Please do not repost questions. https://www.codeproject.com/Questions/5163973/Postback-url-problem[^]

      1 Reply Last reply
      0
      • U UDTWS

        hi, i have this code and this code not working properly code in one.aspx

        Code in AcData.aspx

        string k = ((HiddenField)PreviousPage.FindControl("hfDistrict")).Value;

        also try this code

        string DistrictN1 = Request.Form["hfDistrict"]

        but i did not get value from previous page actually we need to remove querystring from old code and not want to use session and we are try to use postbackurl to pass value from one.aspx to AcData.aspx. what is the exact problem i was doing and what will be the solution. plz provide solution thanks and regrds

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        [Button.PostBackUrl Property (System.Web.UI.WebControls) | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.button.postbackurl?view=netframework-4.8) Read the Remarks in the post above Check your Postback Url PostBackUrl="~\AcData.aspx"

        If it ain't broke don't fix it Discover my world at jkirkerx.com

        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