asp.net from提交获取
问下 在from使用post方法提交以后
在第二个页面里 怎么取出from提交过来的所有元素的值
from元素包括:
HTML code:
]
<input type="text" name="uname" id="uname"/>
<input id="Checkbox1" checked="checked" name="sex" type="radio" />
<select id="Select1" name="Select1" style="width:145px">
<option>您母亲的生日是?</option>
<option>您父亲的生日是?</option>
</select>
<input type="RadioButton" id="RadioButton1" name="RadioButton1" />
<input type=file name="ufile" id="ufile" />
<input type=image id="uimage" name="uimage" />
这几种元素的值都怎么取出来啊?高手们帮帮忙
有回复必有分
不知道是不是this.Request.Form["xx"]?
Request.Form["id"]取值
Request.Params
所有类型都用这个取值嘛?
type=radio 怎么取出来啊比如说有三个单选按钮 那么我怎么得到他选择的按钮呢?
yes
利用request
相关问答:
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
3个radioButton
一个Button
一个label
C# code:
protected void Button1_Click(object sender, EventArgs e)
{
string str = null;
RadioButton rdo=(RadioButton)sender;
......
发给我一份 280535258@qq.com 谢谢 要分可以说 多少都行
参考::!!!!
前台
<%@ Page language="c#" Codebehind="Domain.aspx.cs" AutoEventWireup="false" Inherits=&q ......