|
我搞了半夜
卡在POST GET上
书上说用表单FORM 然后单选设置POST 还是 GET 提交
我把输入的信息TEXTBOX用了WEB控件没用表单 想能不能直接设定用POST 或者GET提交
怎么设置?
我新手 程序如下
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"
//就是这个地方我不明白 他说只读[][][][][][][][[][][[][][[····######
Else
Request.HttpMethod =="get"
End If
Response.Write("用户名:" + TextBox1.Text + "<br>" + "学号:" + TextBox2.Text + "<br>" + "真实姓名 :" + TextBox3.Text + "<br>" + "密码 :" + TextBox4.Text + "<br>" + "宿舍电话 :" + TextBox5.Text + "<br>" + "移动电话 :" + TextBox6.Text + "<br>" + "Email:" + TextBox7.Text + "<br>" + "个人主页:")
End If
End Sub |
|