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