Visual Studio 2019 was just released in 2019 and is not yet a stable release.
The instructor believes the property PostBackUrl
of the control Button
has a bug, which does not allow the data to be sent across pages.
There are other ways to bypass this.
You may just use the GET method.
Using this method, data is sent as a standard input stream to the program, and saved in the Request.Form
variable of an associative array.
For example, if the input IDs are email
, password
, and button1
, respectively, the standard input may contain the following string after users enter the requested information and submit:
email=userid%40cs.und.edu&password=260&button1=customer
and the variable values are
Request.Form["email"]
= “userid@cs.und.edu,”
Request.Form["password"]
= “260,” and
Request.Form["button1"]
= “customer.”
in the ASP.NET script.
The code ‘%40’ is for the symbol ‘@’.
The following demonstration shows an example of the POST method assuming
- Submit Button ID:
act
,
- Input1 TextBox ID:
input1
, and
- Input2 TextBox ID:
input2
.