ASP.net postback url problem
-
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
-
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
Please do not repost questions. https://www.codeproject.com/Questions/5163973/Postback-url-problem[^]
-
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
[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