随笔分类 -  asp.net

1 2 3 4 5 ··· 11 下一页
该文被密码保护。
posted @ 2013-01-08 11:14 你妹的sb 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-12-03 17:01 你妹的sb 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-11-30 09:42 你妹的sb 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-11-30 08:52 你妹的sb 阅读(1) 评论(0) 推荐(0) 编辑
摘要:http://www.jb51.net/article/22514.htm 阅读全文
posted @ 2012-05-21 14:03 你妹的sb 阅读(253) 评论(0) 推荐(0) 编辑
摘要:protected void Button1_Click(object sender, EventArgs e) { string FFmpegArguments = @" -i D:\离歌.wmv -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 D:\离歌.flv "; //ProcessStartInfo info = new ProcessStartInfo("D:/ffmpeg/ffmpeg", FFmpegArguments); //Process.Start(info); Process... 阅读全文
posted @ 2012-04-05 10:16 你妹的sb 阅读(853) 评论(0) 推荐(0) 编辑
摘要:方法一:随机生成不重复数字字符串 privateintrep=0;//////生成随机数字字符串//////待生成的位数///生成的数字字符串privatestringGenerateCheckCodeNum(intcodeCount){stringstr=string.Empty;longnum2=DateTime.Now.Ticks+this.rep;this.rep++;Randomrandom=newRandom(((int)(((ulong)num2)&0xffffffffL))|((int)(num2>>this.rep)));for(inti=0;i<c 阅读全文
posted @ 2012-04-01 17:04 你妹的sb 阅读(690) 评论(0) 推荐(0) 编辑
摘要:2011-10-17 01:12 397人阅读 评论(0) 收藏 举报微软自带上传控件FileUpload介绍:其默认能上传大小为4096 KB ,如果使用FileUpload控件上传文件超过4096KB就会是运行的网页页面运行挂掉。但是我们可以对FileUpload控件上传大小进行重新配置,避免这种问题。上传大文件,Web.config中的配置 :在web.config中的<system.web></system.web>内加入如下代码: <httpRuntime executionTimeout="600" maxRequestLength 阅读全文
posted @ 2012-04-01 13:12 你妹的sb 阅读(628) 评论(0) 推荐(0) 编辑
摘要:javascript函数中执行C#代码中的函数: 方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中; 2、在前台写一个js函数,内容为document.getElementById("btn1").click(); 3、在前台或后台调用js函数,激发click事件,等于访问后台c#函数; 方法二:1、函数声明为public 后台代码(把public改成protected也可以) public string methodname() //注意该方法不能为void,否则执行会报错 { //在这之前可以做任何一些服务端的操作,可以不把返回值.. 阅读全文
posted @ 2012-04-01 13:06 你妹的sb 阅读(445) 评论(1) 推荐(1) 编辑
该文被密码保护。
posted @ 2012-04-01 12:40 你妹的sb 阅读(3) 评论(0) 推荐(0) 编辑
摘要:string strNew = ""; string m = "朱雅君,姚怡尔,涂静,"; string n = "姚怡尔,涂静,刘刚"; string[] A = m.Split(','); string[] B = n.Split(','); //var reNew = (from a in A select a).Intersect(from b in B select b).ToArray(); var reNew = from s in A where B.Contains(s) select 阅读全文
posted @ 2012-03-31 17:03 你妹的sb 阅读(679) 评论(0) 推荐(0) 编辑
摘要:在global文件的添加如下代码:实现 xxx.html----->>xxx.aspxvoid Application_BeginRequest(object sender, EventArgs e) { if (Regex.IsMatch(Request.RawUrl.ToLower(), @".html") == true ) { Context.RewritePath(Request.RawUrl.Replace(".html",".aspx")); } } 阅读全文
posted @ 2012-03-28 19:54 你妹的sb 阅读(224) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-03-28 17:11 你妹的sb 阅读(1) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 计算两个日期的时间间隔 /// </summary> /// <param name="DateTime1">第一个日期和时间</param> /// <param name="DateTime2">第二个日期和时间</param> /// <returns></returns> public static string DateDiff(DateTime DateTime1, DateTime DateTime2) { s 阅读全文
posted @ 2012-03-26 15:30 你妹的sb 阅读(343) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-03-22 13:13 你妹的sb 阅读(0) 评论(0) 推荐(0) 编辑
摘要:我们开发web项目的时候,经常遇到由于数据库中数据不存在或者被删除,而带来相应的web页面不存在/出错的情况。那么我们应该如何对待这种情况呢?通常情况下,类似代码:Product pro = GetProduct(123);返回编号为123的产品信息,如果后面不判断pro==null直接引用pro的属性,就会引发 NullReferenceException(为将对象引用到对象实例)异常,然后如果web.config中设置 <customErrors mode="RemoteOnly" defaultRedirect="err.aspx"> 阅读全文
posted @ 2012-03-21 20:46 你妹的sb 阅读(1951) 评论(0) 推荐(0) 编辑
摘要:方法一、 using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.SessionState; using System.Timers; using System.Net; using System.IO; using System.Text; using System.Threadin... 阅读全文
posted @ 2012-03-21 20:04 你妹的sb 阅读(1151) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Text; /// <summary> /// JsonConvert 的摘要说明 /// 阅读全文
posted @ 2012-02-08 11:35 你妹的sb 阅读(1141) 评论(1) 推荐(0) 编辑
摘要:using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using Sy 阅读全文
posted @ 2012-02-08 10:07 你妹的sb 阅读(235) 评论(1) 推荐(0) 编辑
该文被密码保护。
posted @ 2012-02-06 10:13 你妹的sb 阅读(0) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 11 下一页
百度一下