原创 div+css——怎麼讓Div自適應高度

很鬱悶的一件事情是:有時你需要一個DIV根據裏面的元素自動適應高度,所以,你肯定無法給這個DIV定義一個實際高度。而你隨便嵌套一個DIV卻發現並不適應高度。這事就鬱悶了。下面給出一些方法。     大致的例子是: <div id="mai

原创 asp.net——ASP.NET Session丟失問題原因及解決方案

關於asp.net Session丟失問題的總結   asp中Session的工作原理:   asp的Session是具有進程依賴性的。ASP Session狀態存於IIS的進程中,也就是inetinfo.exe這個程序。所以當ineti

原创 asp.net——Asp.Net加密解密類

using System.Web.Security; using System.Security.Cryptography; using System.Text; using System.IO; /// <summary> /

原创 C#——public void Delete(List EntityList) where T : class, new() 的用法

就是說T必須是一個類(class)類型,不能是結構(structure)類型。 這是類型參數約束,.NET支持的類型參數約束有以下五種: where T : struct                               | T

原创 asp.net——“未能映射路徑”解決方法

今天要寫一段讀寫文件的程序,使用System.Web.HttpContext.Current.Server.MapPath("/bin/WebSet.xml")  ,不料卻出現“未能映射路徑”的錯誤,馬上檢查程序,感覺沒有什麼錯誤,於是乎

原创 sql server——使用rownumber()獲得行號並不排序

ROW_NUMBER必須指寫over (order by **),有時我根本就不想排序,想按原始順序(排序也是要時間的嘛) --方法就是: select ROW_NUMBER() over(order by (select 0)) AS

原创 winform——winform子窗體自適應父窗體大小

private void SubForm_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximi

原创 git 大文件上傳

Getting Started Download and install the Git command line extension. Once downloaded and installed, set up Git LFS and

原创 git提交時報錯:Updates were rejected because the tip of your current branch is behind......解決方案

  報錯: To https://github.com/GaoJingsi/shiro-permission-management-system.git ! [rejected] master ->

原创 黑馬學習筆記——jQuery UI Autocomplete 輸入中文不自動完成問題解決方案

在jquery.ui.autocomplete.js中 找到.bind( "blur.autocomplete", function( event )  改爲如下代碼,輸入中文立即查詢。。。。。。 .bind( "blur.autoc

原创 黑馬學習筆記——“未能映射路徑”解決方法

今天要寫一段讀寫文件的程序,使用System.Web.HttpContext.Current.Server.MapPath("/bin/WebSet.xml") ,不料卻出現“未能映射路徑”的錯誤,馬上檢查程序,感覺沒有什麼錯誤,於是乎網

原创 http://user.qzone.qq.com/1467400757/blog/1388395412

 http://user.qzone.qq.com/1467400757/blog/1388395412

原创 黑馬學習筆記——使用rownumber()獲得行號並不排序

ROW_NUMBER必須指寫over (order by **),有時我根本就不想排序,想按原始順序(排序也是要時間的嘛) --方法就是:select ROW_NUMBER() over(order by (select 0)) AS R