how to pass values from one page to other page in post mechanism ?
-
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,
-
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,
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
-
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,
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 inRequest.Forms
collection.Navaneeth How to use google | Ask smart questions