摘要:
Refer to http://stackoverflow.com/questions/844362/how-to-custom-theme-jquery-ui-tabs-not-using-themeroller<!DOCTYPE html><html><head> <title>LoginPage</title> <script type="text/javascript" src="http://www.cnblogs.com/Scripts/jquery-1.8.2.min.js" 阅读全文
摘要:
Same:1. Both clustered and nonclustered indexes can be made up of more than one column.2. Both clustered indexes, and nonclustered indexes take up additional disk space.3. Adding indexes (both clustered and nonclusterd) will increase the amount of time that your INSERT, UPDATE and DELETE statement t 阅读全文
摘要:
1. Create and delete clustered indexDrop Index PerformanceIssue.UNC_PRIDCREATE UNIQUE NONCLUSTERED INDEX UNC_PRID ON PerformanceIssue (PRID)CREATE UNIQUE CLUSTERED INDEX UC_PRCode ON PerformanceIssue(PRCode)2. Refer to http://www.blogjava.net/jiabao/archive/2008/04/08/191595.html2.1 【Table Scan】 打开执 阅读全文
摘要:
1. In technical terms, a table without an index is called a “heap”.2. Common functions.select db_id(N'Product'); -- Get DB idselect object_id('test.dbo.PerformanceIssue') -- Get Table idselect * from sysobjects where id= object_id('PerformanceIssue') and type = 'U' -- 阅读全文
摘要:
<script type="text/javascript"> $(document).ready(function () { $("#validimg").click(function () { $("#validimg").attr('src', '@Url.Content("~/Home/GenerateImage?")' + Math.random()); }); }) </script> <div> <img alt="验 阅读全文
摘要:
Create a new folderOpen Visual StudioChoose "File" -> "Open web site"Go to the recently created folderThen right click -> Add New itemSelect "HTML File"Rename the file as .ASPCreate a new web site or virtual directory in IIS and point to the folder 1. Open 'Ad 阅读全文
摘要:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Refer to http://www. 阅读全文
摘要:
public void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL w/ params new { controller="Home",... 阅读全文
摘要:
Refer to http://s.yanghao.org/program/viewdetail.php?i=25618在服务端维护登录用户与其SessionID的关系。同一用户,后登陆者将前登陆者的SessionID冲掉,这样,前者如果再请求服务器资源,就会认为 其未登录,要求重新登录。这样,即使出现断电等无法注销的情况,也会在他下次登陆时自动取代掉,同时也解决了用户登陆的唯一性问题。 阅读全文
摘要:
Add dynamic-update="true" in configuration file on the class level node<?xml version="1.0" encoding="utf-8" ?><hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="TstDBConnection.Entities" assembly="TstDBConnection"> 阅读全文