2010年12月3日

JavaScript表单提交到弹出窗口(转帖)

方法:
  用window.open弹出一个窗口,通过第二个参数设置它的name,
  让form的target等于这个name就可以了,这样就提交到这个窗口中了

 

document.formfind.action="drawingreport.jsp";   

window.open (""'win''width=720px,height=600px,resizable=yes,top=50px,left=200px,toolbar=no, menubar=no, location=no, status=no');  

document.formfind.target="win";   

document.formfind.submit();  

posted @ 2010-12-03 03:47 砖头 阅读(161) 评论(0) 编辑

asp.net后台获取前台html控件的值的方法(转帖)

protected void Button1_Click(object sender, EventArgs e)
{
     System.Collections.Specialized.NameValueCollection nc
= new System.Collections.Specialized.NameValueCollection(Request.Form);
     Response.Write(nc.GetValues(
"txtname")[0].ToString());
}

posted @ 2010-12-03 03:19 砖头 阅读(223) 评论(0) 编辑