摘要:
校园风光 阅读全文
摘要:
阅读全文
摘要:
控制器代码--------------------------------------------------------------------------------//生成验证码publicActionResultyanzhengma(){ValidateCodevCode=newValida... 阅读全文
摘要:
publicstaticStringbianhao(){//生成唯一建立编号idlongi=1;foreach(bytebinGuid.NewGuid().ToByteArray())i*=((int)b+1);Stringi1=string.Format("{0:x}",i-DateTime.No... 阅读全文
摘要:
//定义方法publicpartialclassVerificationCode:System.Web.UI.Page{stringImagePath="images/validator.jpg";stringsValidator="";protectedvoidPage_Load(objectse... 阅读全文
摘要:
当前时间是: 阅读全文
摘要:
//删除表中重复数据selectdistinct*fromTable_1//删除表中字段为空的数据deletefromaddresswhere_telisnull//sql获取前30天的日期selectdateadd(day,-30,getdate()) 阅读全文
摘要:
全选foreach(GridViewRowgvinGridView1.Rows){CheckBoxcb=(CheckBox)gv.FindControl("CheckBox1");cb.Checked=true;}删除for(inti=0;i<GridView1.Rows.Count;i++){Ch... 阅读全文
摘要:
protectedvoidbtnUp_Click(objectsender,EventArgse){stringsavePath=@"images/";//图片保存路径stringfileName=Server.HtmlEncode(picupload.FileName);stringextensi... 阅读全文
摘要:
if(Session["Pro"]==null){DataTabledt=newDataTable();dt.Columns.Add("_id",typeof(int));//商品iddt.Columns.Add("_title",typeof(string));//商品名dt.Columns.Ad... 阅读全文
摘要:
asp.net 验证正则表达式整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0... 阅读全文
摘要:
//引入文件用户登录工号:密码:登录忘记密码 阅读全文
摘要:
#region带html字符串截取publicStringHtmlSubstring(StringHtmlsubstring){Regexregex=newRegex("",RegexOptions.IgnoreCase);stringstrOutput=regex.Replace(Htmlsubs... 阅读全文
摘要:
1、引入命名空间 usingSystem.Web.SessionState2、必须实现接口 publicclassLogin:IHttpHandler,IRequiresSessionState3、调用context.Session["user_Message"]=Email; 阅读全文
摘要:
MicrosoftVisualStudio 2010 产品密钥:YCFHQ-9DWCY-DKV88-T2TMH-G7BHPMicrosoftVisualStudio 2013 产品密钥:BWG7X-J98B3-W34RT-33B3R-JVYW9 阅读全文
摘要:
functionrequest(paras){varurl=location.href;varparaString=url.substring(url.indexOf("?")+1,url.length).split("&");varparaObj={}for(i=0;j=paraString[i]... 阅读全文
摘要:
stringid=Request["id"];if(string.IsNullOrEmpty(id)){Response.Write("参数有误!!!");return;}Model=db.FirstOrDefault("select*fromdt_JobwhereId=@0",id);if(Mod... 阅读全文
摘要:
网络上的两个程序通过一个双向的通信连接实现数据的交换,这个连接的一端称为一个socket。 阅读全文
摘要:
//xml数据存储public static void CreateXml() { //创建xml string Name = DateTime.Now.ToString("yyyymmddhhmmss"); XmlTextWriter writer = new XmlTextWriter("xml... 阅读全文
摘要:
1、创建一个父类,写一个没有返回的父类方法。2、创建一个子类,继承父类,写一个没有返回的子类方法。3、调用子类的方法,输出结果是父类的执行方法。 阅读全文