摘要: 1.Open a command prompt 2.Stop IIS:“iisreset/stop“ 3.Change to the .NET Framework 2.0 root directory:“C:\WINDOWS\Microsoft.NET\Framework\v2.0.... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(112) 评论(0) 推荐(0)
摘要: string str = "aaa,bbb,ccc!ddd"; string[] array1 = str.Split(','); string[] array2 = str.Split(new char[] { ',', '!' }); string[] array3 = Rege... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(129) 评论(0) 推荐(0)
摘要: function setupPrice() { var baselinePrice = $("#").val(); $("#").attr('placeholder', baselinePrice); } 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(146) 评论(0) 推荐(0)
摘要: var entres = from entry in db.Entries group entry by entry.Name into groupByName orderby groupByName.Count() descending select new CommentSumm... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(73) 评论(0) 推荐(0)
摘要: 碰到一个莫名其妙的问题,发布网站时,页面文件放在Reports文件夹里,超链的时候跳出windows需要验证.我估计是Reports这个文件夹默认是用于发布报表的.所以需要权限 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(183) 评论(0) 推荐(0)
摘要: 如果网站需要登录才可以访问的话,需要添加 public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new AuthorizeAttribute()); filters... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(114) 评论(0) 推荐(0)
摘要: http://localhost:5463/CustomAjax/index @section head { } @Html.ActionLink("show the pricy policy", "PrivacyPolicy",null,new { id= "privacyLin... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(94) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(140) 评论(0) 推荐(0)
摘要: USE [master] GO EXEC master.dbo.sp_addlinkedserver @server = N'192.168.1.102\SQLEXPRESS', @srvproduct=N'SQL Server' ; GO --把数据库加到本地的类似连接池里. se... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(105) 评论(0) 推荐(0)
摘要: Dim cntrl As Control For Each cntrl In frm If TypeOf cntrl Is CommandButton Or TypeOf cntrl Is CheckBox Or TypeOf cntrl Is fpBtn Then 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(125) 评论(0) 推荐(0)
摘要: 要记得在服务器防火墙中打开端口号 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(239) 评论(0) 推荐(0)
摘要: #region 定义类型 /// /// 图书分类信息 /// public class Category { /// /// 分别ID /// public int catID { get; set; } /// /// 分类名 /// public string ca... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(287) 评论(0) 推荐(0)
摘要: 行组列祖最右边箭头->高级模式->行组静态->keepwithgroup=after ,reportonnewpage=true 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(167) 评论(0) 推荐(0)
摘要: Index.cshtml @model IEnumerable @section head { } comments @foreach (var comment in Model) { @comment } @Html.TextArea("comment", new { ro... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(196) 评论(0) 推荐(0)
摘要: $('input:checkbox').each(function () // 循环每个checkbox parseInt($(this).val();// 计算 check box的值 sample ... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(235) 评论(0) 推荐(0)
摘要: 1 (function($) { var cache = []; // Arguments are image paths relative to the current page. $.preLoadImages = function() {... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(349) 评论(0) 推荐(0)
摘要: body:before { content: ""; position: fixed; top: -10px; left: 0; width: 100%; height: 10px; -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8); -... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(99) 评论(0) 推荐(0)
摘要: 1.web.config添加数据库连接 2.创建DbContext,类的名字必须和webconfig建的名字一致 public class GuestbookContext:DbContext { public System.Data.Entity.DbSet Entries { ... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(71) 评论(0) 推荐(0)
摘要: 前台 '> 后台 AgentPrice ap = (AgentPrice)e.Item.DataItem; Label lblRegionCost = e.Item.FindControl("lblRegionCost") as Label; lblRegionCost.Text... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(180) 评论(0) 推荐(0)
摘要: 拖动 拖动交换单元格内容 ... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(329) 评论(0) 推荐(0)
摘要: 相同点: 虚方法(virtual)和抽象方法(abstract)都可以被派生类重写 不同点: 1.虚方法(virtual)有方法实体,抽象方法(abstract)没有方法实体【类似接口】 virtual void SayWord() { //代码 } abstract vo... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(107) 评论(0) 推荐(0)
摘要: IEnumerable继承了 IEnumerable,是可以循环访问的集合,就是一个迭代. IList 继承了 interface IList : ICollection, IEnumerable, IEnumerable. 有了ICollection 就可以做添加删除之类的... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(130) 评论(0) 推荐(0)
摘要: DateTime dt = DateTime.ParseExact("20060709110901","yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture); 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(261) 评论(0) 推荐(0)
摘要: exec sp_msforeachtable 'alter table ? nocheck CONSTRAINT all' exec sp_MSforeachtable @command1='Delete from ?' exec sp_MSforeachtable @command... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(110) 评论(0) 推荐(0)
摘要: 一个页面莫名其妙的按钮不能点,但是删了数据就可以了,原来是因为updatepanel中数据太多,导致页面报错了。 中数据量过大导致 500 错误 出现的问题描述:当页面的数据量比较大时,出现异常,详细信息: System.InvalidOperationException: 对象... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(262) 评论(0) 推荐(0)
摘要: 1.cmd-》 aspnet_regsql.exe -S localhost-ssadd -sstype p -U sa -P qwe123! @# 2.web.config 修改 msdn-》 http://msdn.microsoft.com/zh-cn/library/ms1... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(253) 评论(0) 推荐(0)
摘要: jQuery.grep(array, callback, [invert]) array:待过滤数组。 callback:此函数将处理数组每个元素。第一个参数为当前元素,第二个参数而元素索引值。此函数应返回一个布尔值。 invert:如果 "invert" 为 false 或为设置,... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(290) 评论(0) 推荐(0)
摘要: .blur { color: transparent; /* 设置字体透明*/ text-shadow: 0 0 5px rgba(0,0,0,0.5); /* 设置文字阴影*/ } 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(129) 评论(0) 推荐(0)
摘要: #region 定义类型 /// /// 商品信息 /// public class Goods { /// /// 商品编号 /// public string GsNo { get; set; } /// /// 商品名称 /// public string GsNa... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(717) 评论(0) 推荐(0)
摘要: NEWS 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(114) 评论(0) 推荐(0)
摘要: asp.net禁用按钮以防止重复提交 转 方法一: 只在按钮前台代码中增加OnClientClick="this.disabled=true;" UseSubmitBehavior="False"即可。 方法二: protected void Page_Load(object sen... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(289) 评论(0) 推荐(0)
摘要: 由于iis的应用连接池用的是net framwork4.0 .UpdatePanel 内的RadioButton 还是会刷新页面. 把net framwork4.0改为2.0 集成模式就没有这问题了.也不是很清楚为什么.可能我用的ajax就是3.5的吧 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(164) 评论(0) 推荐(0)
摘要: is() 根据选择器、元素或 jQuery 对象来检测匹配元素集合,如果这些元素中至少有一个元素匹配给定的参数,则返回 true。 sample Is is() 根据选择器、元素或 jQuery 对象来检测匹配元素集合,如果这些元素中至少有一个元素匹配给定的参数,则返回 ... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(142) 评论(0) 推荐(0)
摘要: sc create MongoDB binPath= "C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe --service --dbpath D:\MongoDB\data --logpath=D:\MongoDB\log\m... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(94) 评论(0) 推荐(0)
摘要: 1.下载InstallShield http://learn.flexerasoftware.com/content/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio?lang=1033&ver=ult 国内有的下拉框显示不出来无... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(100) 评论(0) 推荐(0)
摘要: 把泛型A赋值给泛型B时,如果修改了泛型B,添加或者修改了记录.那么泛型A也会受到影响. 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(74) 评论(0) 推荐(0)
摘要: sort() 方法用于对数组的元素进行排序。 sample sort sort排序 字母排序 数字排序 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(176) 评论(0) 推荐(0)
摘要: div element paragragh element span element 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(71) 评论(0) 推荐(0)
摘要: 只会在第一次使用类的时候执行 public class User { public static readonly Color BackColor; static User() { DateTime now = DateTime.Now; if (now.DayOfWeek == D... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(89) 评论(0) 推荐(0)
摘要: Create Procedure sp_LookForColumn ( @DBName VarChar(100) , @ColumnName VarChar(100) ) As Declare @SQL VarChar(8000) Select @SQL = ' Select A.N... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(89) 评论(0) 推荐(0)
摘要: 数组是引用类型 class ParameterTest { static void SomeFunction(int[] ints, int i) { ints[0] = 100; i = 100; } public static int Main() { int i = 0; in... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(67) 评论(0) 推荐(0)
摘要: // 示例数据 Student[] students = { new Student { StuID = 1, StuName = "小陈", Course = "C++基础" }, new Student { StuID = 2, StuName = "小林", Course = ... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(142) 评论(0) 推荐(0)
摘要: ALTER PROCEDURE [dbo].[RebuildIndex] AS DECLARE @DBName NVARCHAR(255) ,@TableName NVARCHAR(255) ,@SchemaName NVARCHAR(255) , @IndexName NVARCH... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(175) 评论(0) 推荐(0)
摘要: 把@ @identity 改为scope_indentity() 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(109) 评论(0) 推荐(0)
摘要: where cast(UUID as nvarchar(max)) ='''+cast( @uuid as nvarchar(max))+'''' 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(127) 评论(0) 推荐(0)
摘要: public static class ProductCollectionExctensionMethods { public static void ApplyCurrencyMultiplier( this List product... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(167) 评论(0) 推荐(0)
摘要: Copying file Properties\PublishProfiles\配置文件1.pubxml to obj\Debug\Package\PackageTmp\Properties\PublishProfiles\配置文件1.pubxml failed. Could not... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(168) 评论(0) 推荐(0)
摘要: =IIf((CInt(Sum(Fields!Quantity.Value)))=Sum(Fields!Quantity.Value),CInt(Sum(Fields!Quantity.Value)),FormatNumber(Sum(Fields!Quantity.Value),2)... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(74) 评论(0) 推荐(0)
摘要: 禁掉提交按钮。表单提交后使用Javascript使提交按钮 disable。这种方法防止心急的用户多次点击按钮。但有个问题,如果客户端把Javascript给禁止掉,这种方法就无效了。 我之前的文章曾说过用一些Jquery插件效果不错。 Post/Redirect/Get模式。在提交... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(137) 评论(0) 推荐(0)
摘要: 不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是通过包含 overrideMode="Deny" 或旧有的 allowOverride="false" 的位置标记明确设置的。 C:... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(220) 评论(0) 推荐(0)
摘要: 一个好用的右键菜单(基于jquery) The jQuery ContextMenu Plugin 是一个jQuery右键菜单插件。新加载和更新右键菜单。支持动态更新菜单值,修改图标,关闭和启用菜单等。 本地download 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(111) 评论(0) 推荐(0)
摘要: 明明数据更新了,但是ExecuteNonQuery返回-1 。是存储过程有这样一句,去掉就可以了。 SET NOCOUNT ON; 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(141) 评论(0) 推荐(0)
摘要: Debug.WriteLine输出调试信息 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(549) 评论(0) 推荐(0)
摘要: 如果安装好的windows服务无法启动或者启动后停止.可以看下 管理工具->计算机管理->事件查看器 安装命令 C:\Windows\Microsoft.NET\Framework\v4.0.30319>InstallUtil.exe D:\workspace\mc\Me nuMan... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(95) 评论(0) 推荐(0)
摘要: CREATE TABLE #temp (TableName VARCHAR (255), RowCnt INT) EXEC sp_MSforeachtable 'INSERT INTO #temp SELECT ''?'', COUNT(*) FROM ?' SELECT Table... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(188) 评论(0) 推荐(0)
摘要: 不能上传文件夹中的的子目录 username 用户名 password密码 cd上传到什么路径 lcd本地要上传的文件夹 mput 上传文件类型mput * 上传所有文件 username password binary cd "/destinationfolder" lcd "C... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(2820) 评论(0) 推荐(0)
摘要: Nlog.config文件 StoreName就是自定义的变量名 private static Logger logger = LogManager.GetCurrentClassLogger(); LogEventInfo theEventInfo = nu... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(789) 评论(0) 推荐(0)
摘要: delegate double DoubleOp(double x); class Program { static void Main() { DoubleOp[] operations = { MathOperations.MultiplyByTwo, MathOperation... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(73) 评论(0) 推荐(0)
摘要: 发布到iis上, application pool用的是framework 4.0时,验证控件颜色不显示红色, 改成framework2.0 一切正常。 需要web.config中pages标签后面加上controlRenderingCompatibilityVersion="3.5... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(85) 评论(0) 推荐(0)
摘要: show() speed:三种预定速度之一的字符串("slow","normal", or "fast")或表示动画时长的毫秒数值(如:1000) fn:在动画完成时执行的函数,每个元素执行一次。 fadeIn(),fadeOut() 通过不透明度的变化来实现所有匹配元素的淡入效果,... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(179) 评论(0) 推荐(0)
摘要: 首先配置数据库属性 sp_configure 'show advanced options', 1 go reconfigure go sp_configure 'xp_cmdshell', 1 go reconfigure go sp_configure 'ole automati... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(391) 评论(0) 推荐(0)
摘要: var entrys = (from entry in db.Entries orderby entry.DateAdded descending select entry).Take(20); 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(77) 评论(0) 推荐(0)
摘要: /* basic calc */ .simpleBlock { width: calc(100% - 100px); } /* calc in calc */ .complexBlock { width: calc(100% - 50% / 3); padding: 5px calc... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(73) 评论(0) 推荐(0)
摘要: var transferFromUserName = $("#" + "").find("option:selected").text(); var transferFromUserID = $("#" + "").find("option:selected").val(); 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(51) 评论(0) 推荐(0)
摘要: create Procedure [dbo].[sp_LookForSP]( @DatabaseName VarChar(100) , @KeyWord1 VarChar(100), @KeyWord2 VarChar(100), @KeyWord3 VarChar(100) ) A... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(91) 评论(0) 推荐(0)
摘要: 步骤 1.在iis中添加项目此项目启用asp调试功能 2.配置oldb连接 控制面板-》管理工具-》Data Sources (ODBC) 3.运行网站,启动vs并且附加到进程,进程是"w3p.exe" 4. iis中需要打开asp的调试功能 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(160) 评论(0) 推荐(0)
摘要: 数组也可以用这个类型 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(67) 评论(0) 推荐(0)
摘要: declare @maxSort int=0 set @sqlUpdateSort='select @maxSort=max(Display_Sequence'+@categoryRow+') from tblMENU_ITEMS where category'+@categoryR... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(143) 评论(0) 推荐(0)
摘要: 本地存储分localStorage和sessionStorage localStorage保存在用户设备中,不随关闭浏览器而消失 Untitled Page 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(98) 评论(0) 推荐(0)
摘要: 找了一个html5 控件的例子,一起看看吧 sample My name is: required 指明它是必填项 My email address is: type="email" 指明它必须是一个有效email地址,通常我们用js判断,现在自带 了。 (at... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(149) 评论(0) 推荐(0)
摘要: SqlConnectionStringBuilder sqlsb = new SqlConnectionStringBuilder(); sqlsb.DataSource = "ServerA"; sqlsb.FailoverPartner = "ServerB"; sqlsb.Us... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(137) 评论(0) 推荐(0)
摘要: da.TransExecSProc("Check_If_Module_Installed_And_Enabled", vals); string installedandenabled = Convert.ToString(da.Param("@installedandenabled... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(126) 评论(0) 推荐(0)
摘要: #region 定义类型 /// /// 专辑信息 /// public class Album { /// /// 专辑名称 /// public string Title { get; set; } /// /// 发行年份 /// public int Year {... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(144) 评论(0) 推荐(0)
摘要: 修改时可以用的linkbutton,在新建时无法使用。需要查看下新建的时候有没有验证通过,如果没有的话需要添加CausesValidation=“false” 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(77) 评论(0) 推荐(0)
摘要: echo off cls echo -- BACKUP DATABASE -- :输入数据库实例名 set /p SERVERNAME=Enter DB server name: :输入需要备份数据库名称 set /p DATABASENAME=Enter DB name: :输入数... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(138) 评论(0) 推荐(0)
摘要: sample 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(59) 评论(0) 推荐(0)
摘要: SELECT tb2.name AS tableName,tb1.name AS triggerName FROM Sysobjects tb1 JOIN Sysobjects tb2 ON tb1.parent_obj=tb2.id WHERE tb1.type='TR' 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(209) 评论(0) 推荐(0)
摘要: Install-Package Microsoft.AspNet.WebApi Install-Package WebApiContrib.CollectionJson 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(203) 评论(0) 推荐(0)
摘要: if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#tempcitys') and type='U') drop table #tempcitys 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(91) 评论(0) 推荐(0)
摘要: 需要修改2处地方 1. filters目录 InitializeSimpleMembershipAttribute.cs WebSecurity.InitializeDatabaseConnection(" MusicStoreDBContext", "UserProfile", "... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(61) 评论(0) 推荐(0)
摘要: 安装 Install-Package NLog.Config Level Example Fatal Highest level: important stuff down Error For example application crashes / exceptions. War... 阅读全文
posted @ 2017-03-05 00:00 PhilXu 阅读(93) 评论(0) 推荐(0)