摘要:
//****ascx用户控件中,定义一个要接收参数的属性 例子: private string mBookTitle; public string BookTite { get{return mBokTitle;} set{mbookTitle=value;} } //****在aspx页面中调用此属性即可 protected UserControl.BookSeach mBoo... 阅读全文
摘要:
1.aspx文件: public void SetLabel(string str) { this.Label1.Text = str; ; } ascx文件; protected void Button1_Click(object sender, EventArgs e) { System.Web.UI.Page p = this.Pa... 阅读全文
摘要:
代码: public class WebPageAds : System.Web.UI.UserControl { private string _adsType; private void Page_Load(object sender, System.EventArgs e){ // 在此处放置用户代码以初始化页面 switch(_adsType){ case("lef... 阅读全文
摘要:
1/**//// 2 /// 判断是否是数字 3 /// 4 /// 字符串 5 /// 6 private bool IsNumeric(string str) 7 { 8 if (str == null || str.Length == 0) 9 return false; 10 Sy... 阅读全文
摘要:
客户端ip: 1Request.ServerVariables.Get("Remote_Addr").ToString(); 客户端主机名: 1Request.ServerVariables.Get("Remote_Host").ToString(); 客户端浏览器IE: Request.Browser.Browser; 客户端浏览器 版本号: Request.Browser.MajorV... 阅读全文
摘要:
Timer控件 Timer控件主要会用到2个属性一个是Enabled和Interval Enabled主要是控制当前Timer控件是否可用 timer1.Enabled=false;不可用 timer1.Enabled=true;可用 timer1.Interval=1000;主要是设置timer2_Tick事件的时间,单位为毫秒 例一:到9:00提示去上厕所:( 把timer2.Interval... 阅读全文
摘要:
Request.Form接受表单传递过来的值,传递方式为POST。 Request.QueryString接受通过地址传过来的值,或是表单GET方式传过来的值。 阅读全文
摘要:
从今天开始我的博客园生活了,望各位前辈老师多多指教 阅读全文