How to "post " form variable to another windows ?
-
hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?
-
hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?
neo_6053 wrote: but i would like to hide my data.. yep, u can use hidden html controls to store ur data... << >>
-
hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?
You can use the Server.Transfer method to hide variables between pages check out - http://www.dotnetbips.com/displayarticle.aspx?id=79 for an example
-
hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?
To post the data, you need a form. To have a form you need a page, so you have to output a page to the browser, containing a form. In the form you put hidden fields with the data you want to send. Then you need to put a javascript in the page, that posts the form. Some users has disabled javascript, if you need to support them also, you would have to put a submit button in the form also, or they would just face a blank page. --- b { font-weight: normal; }