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()";

posted on 2007-03-12 14:57  mecn  阅读(263)  评论(0编辑  收藏  举报