1.控件的设置焦点可以设置焦点的控件如下:Button,CheckBox,DropDownList,HyperLink,ImageButton,LinkButton,ListBox,RadioButton,TextBox四种方法,殊途同归:Page.SetFocus(txtUserID);this.SetFocus(txtUserID);Page.SetFocus(txtUserID.Client... Read More
posted @ 2007-04-22 17:31 包建强 Views(999) Comments(0) Diggs(0)
HtmlHead类动态添加中子标签,如和,尤其是后者,就是动态配置CSS。例子如下: protected void Page_Load(object sender, EventArgs e) { Style bodyStyle = new Style(); bodyStyle.ForeColor = System.Drawing.Color.Red; ... Read More
posted @ 2007-04-22 17:07 包建强 Views(783) Comments(1) Diggs(0)
在ASP.NET 2.0使用以下四种方式:HyperLinkResponse.Redirect()Server.Transfer()Cross-Page Posting以下只说第四种,即“跨网页公布”区别于PostBack(只是自己ReCall自己),不再需要URL中的参数QueryString方法1:使用PreviousPage.FindControl访问来源网页A的空间属性属性。A页面有Tex... Read More
posted @ 2007-04-22 15:26 包建强 Views(946) Comments(0) Diggs(0)