您的位置:首页 > 编程语言 > ASP

Asp.net提交HTML控件表单

2011-08-09 15:30 405 查看
Asp.net提交HTML控件表单

HTML代码:
<input
name="img_pos"
id="img_pos"
value="400,334"
/>
<input
name="cut_pos"
id="cut_pos"
value=""
/>
<input
type="submit"
class="button"
name="submit"
runat="server"
id="submit"
value=" 确认"
onserverclick="submit_ServerClick"
/>

服务器代码:

protected
void submit_ServerClick(object sender,
EventArgs e)
{
string[] a_img_pos = Request["img_pos"].Split(',');
string[] a_cut_pos = Request["cut_pos"].Split(',');
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: