|
I did it in the middle of the night
Stuck on POST GET
The book says to use the form FORM and then select POST or GET to submit
I used the input information TEXTBOX with a WEB control and no form. Can I directly set to submit using POST or GET
How to set it up?
My novice procedure is as follows
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub TextBox2_TextChanged (ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
End Sub
Protected Sub TextBox1_TextChanged (ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Protected Sub Button1_Click (ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
If Page.IsValid Then
If RadioButton1.Checked = True Then
Request.HttpMethod == "POST"
// This is the place I do n’t understand. He said that it ’s read-only
Else
Request.HttpMethod == "get"
End If
Response.Write ("User name:" + TextBox1.Text + "<br>" + "Student number:" + TextBox2.Text + "<br>" + "Real name:" + TextBox3.Text + "<br> "+" Password: "+ TextBox4.Text +" <br> "+" dormitory phone: "+ TextBox5.Text +" <br> "+" mobile phone: "+ TextBox6.Text +" <br> "+" Email: "+ TextBox7.Text +" <br> "+" Profile: ")
End If
End Sub |
|