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(',');
}
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(',');
}
相关文章推荐
- asp.net 中将表单提交到另一页 Code-Behind(代码和html在不同的页面)
- asp.net 中将表单提交到另一页 Code-Behind(代码和html在不同的页面)
- asp.net 中将表单提交到另一页Inline Code(代码和html在同一页面)
- asp.net 服务器控件防止重复提交表单
- asp.net动态增加服务器端控件并提交表单
- asp.net 中将表单提交到另一页 Code-Behind(代码和html在不同的页面)
- 一起学asp.net基础文章二 服务器控件、客户端控件和html表单控件
- 一起学asp.net基础文章二 服务器控件、客户端控件和html表单控件
- Asp.net webForm设置允许表单提交Html的方法
- 使用Asp.net 接收html提交的表单
- asp.net 接收html表单提交如何接收
- 使用Asp.net 接收html提交的表单
- 使用Asp.net 接收html提交的表单
- ASP.NET多个用户控件回车提交表单问题解决和获取用户控件上的ID方法
- .net知识系列之三:(html提交表单的方式,html控件,获取html表单的内容,sql注入,html服务器控件,net服务器控件)
- ASP.NET多个用户控件回车提交表单问题
- asp.net页面间传值的几种方法 表单提交 传送页面代码 复制代码 <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server
- asp.net 中将表单提交到另一页 Code-Behind(代码和html在不同的页面)
- asp.net提交表单中含有HTML标签解决方案
- Silverlight4里面嵌入html页面或者asp.net(jsp)控件实现