上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 先看看ASP.NET页面刷新的实现方法:第一: private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } 第二: private void Button2_Click( object sender, System.EventArg... 阅读全文
posted @ 2010-01-30 18:04 William2013 阅读(151) 评论(0) 推荐(0)
摘要: 可以通过SessionID和用户名来保证同一个用户不能同时登录的问题,下面程序模仿了QQ的登录,当登录后判断当前帐号是否已经登录,如果登录。则踢掉以前登录的用户。1.通过Application全局变量来存储SessionID和用户名,每次登录时都保存,并且将该Application存入Hashtable中,当用户登录成功后,首先判断该用户是否已经存储在Application中,如果存在(说明已经登... 阅读全文
posted @ 2010-01-22 13:14 William2013 阅读(380) 评论(0) 推荐(0)
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Net.Mail;usingSystem.Net;namespaceLFSYNC{classEMail{privatestring_from;publicstringFrom{get{return_from;}set{_from=value;}}priv... 阅读全文
posted @ 2010-01-22 13:12 William2013 阅读(212) 评论(0) 推荐(0)
摘要: 先是给大家一个类: class ScreenShot { public static void CaptureImage(Point SourcePoint, Point DestinationPoint, Rectangle SelectionRectangle, string FilePath) { using (Bitmap bitmap = new Bitmap(SelectionRect... 阅读全文
posted @ 2010-01-22 13:10 William2013 阅读(483) 评论(0) 推荐(0)
摘要: 一、抽象类: 抽象类是特殊的类,只是不能被实例化;除此以外,具有类的其他特性;重要的是抽象类可以包括抽象方法,这是普通类所不能的。抽象方法只能声明于抽象类中,且不包含任何实现,派生类必须覆盖它们。另外,抽象类可以派生自一个抽象类,可以覆盖基类的抽象方法也可以不覆盖,如果不覆盖,则其派生类必须覆盖它们。 二、接口: 接口是引用类型的,类似于类,和抽象类的相似之处有三点:1、不能实例化; 2、包含未实... 阅读全文
posted @ 2010-01-22 13:02 William2013 阅读(220) 评论(0) 推荐(0)
摘要: SQL中CONVERT转化函数的用法CONVERT的使用方法:////////////////////////////////////////////////////////////////////////////////////////格式:CONVERT(data_type,expression[,style])说明:此样式一般在时间类型(datetime,smalldatetime)与字符串... 阅读全文
posted @ 2010-01-22 12:55 William2013 阅读(150) 评论(0) 推荐(0)
摘要: 注册用户页面代码如下<scriptlanguage="javascript"type="text/javascript">varxmlHttp=false;try...{xmlHttp=newActiveXObject("Msxml2.XMLHTTP");}catch(e)...{try...{xmlHttp=newActiveXObject("Microsoft.XMLHTTP");... 阅读全文
posted @ 2010-01-20 22:26 William2013 阅读(3794) 评论(1) 推荐(0)
摘要: Repeater 双向排序 做项目的时候,DataGrid ,DataList,Repeater 三个控件都是很优秀的数据显示控件,DataGrid的方便,简单易用,功能强大,但对性能会有所影响,在loading页面的时候大量的Html会占用一些时间,DataList 较之DataGrid功能显然减少一些,经常在一些特殊的页面制作或需求中来用,经常简单的页面显示收据表格,使用Repeater+Ta... 阅读全文
posted @ 2010-01-20 22:19 William2013 阅读(323) 评论(0) 推荐(0)
摘要: 1、<itemtemplate><tr><td><%# Container.ItemIndex + 1%></td></tr></itemtemplate> 2、<itemtemplate><tr><td><%# this.rpResult.Items.Count + 1%... 阅读全文
posted @ 2010-01-20 22:16 William2013 阅读(1294) 评论(0) 推荐(0)
摘要: 方式1:foreach(Controlcinthis.Repeater1.Controls){HtmlInputCheckBoxcheck=(HtmlInputCheckBox)c.FindControl("cbDelete1");if(check!=null){check.Checked=true;}}方式2:for(inti=0;i<this.Repeater1.Items.Count;... 阅读全文
posted @ 2010-01-20 22:11 William2013 阅读(322) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页