您的位置:首页 > 其它

得到页面所有的form内对象数值——————为一个控件加一个客户端属性

2007-03-12 14:57 459 查看
foreach (string str in Request.Form.AllKeys)
{
this.Response.Write(str+":"+this.Request.Form [str].ToString ()+"<br />");
}

为一个控件加一个客户端属性
Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript",
"function NewWin() { showModalDialog('2.htm', '"+Label_Num.Text+"', 'dialogWidth:600px; dialogHeight:420px; status:0; help:0;scroll:no;resizable:yes'); }", true); }

Button1.Attributes["onclick"] = "NewWin()";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐