Time of Update: 2018-12-07
在項目中寫了兩個表的觸發器分別是cd表。
Time of Update: 2018-12-07
- 在項目中經常遇到綁定在Datagridview時,表中的一個欄位是主鍵表中的主鍵,但是想在顯示的時候顯示的是該條主鍵對應的值,比如:客戶管理項目設計時,客戶資訊表包含客戶層級表中的層級編號欄位,客戶層級表中的每個層級編號將對應一個層級說明,下面就是具體的做法: 客戶管理介面中的Datagridview綁定kh表,包括欄位:客戶類別(綁定客戶類型表主鍵id),客戶公司,客戶電話……
Time of Update: 2018-12-07
--建庫if exists(select * from sys.sysdatabases where name='wf')begin use master drop database wfendgocreate database wfon (name=N'wf',filename=N'E:\MyCode\ETC收費站\ETC收費站\ETC_Data\wf.mdf',size=3mb,maxsize=unlimited,filegrowth=1)log
Time of Update: 2018-12-07
在App.Config檔案加下兩個節點中任意一個<appSettings>……</appSettings>或<connectionStrings>……</connectionStrings>App.configCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?xml version="1.0"
Time of Update: 2018-12-07
如果我們學習了ADO.Net或者實際做過一個與資料庫進行資料互動的應用程式,那就非常好理解今天我們所教授的知識點---SQL中的預存程序,預存程序是實際項目開發過程中最常用的處理資料庫資料的方式,這是最基本的資料庫操作,必須熟練掌握,既然它這麼重要,下面我們就開始學習預存程序,有關它的好處和實質,我們放到學習完文法和執行個體後讓大家一起發現式的總結,這樣更能體會出預存程序的優勢和方便。 首先我們來學習定義一個最簡單的預存程序文法,"[ ]"內的語句可以省略:Code
Time of Update: 2018-12-07
視圖的概念:視圖對象是一個虛擬表,虛擬表所包含的結果集是對一個或多個表的查詢。視圖本身不儲存這個結果集,而是儲存查詢的定義。視圖的定義是對已經存在表的查詢。使用視圖和使用表很類似,可以把視圖當做一個表來查詢,SQL Server動態執行視圖的定義得到的結果集。視圖與表的區別:視圖能為使用者集中組織資料
Time of Update: 2018-12-07
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http:
Time of Update: 2018-12-07
儲存sql 維護計劃時報no description found錯誤,原因為: 如果你在安裝 SQL Server 2005 之後,才安裝 Microsoft Office Visio 2003,就會有這個問題發生,原因在於:SQL Server 2005 所需的 Microsoft Core XML Services (MSXML) 被換成舊版,此時請安裝最新版的Microsoft Office Visio 2003 Service Pack,或是乾脆移除 Microsoft Office
Time of Update: 2018-12-07
asp.aspx原始碼<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
Time of Update: 2018-12-07
string template = "Template.ods"; string path = Server.MapPath(System.Configuration.ConfigurationSettings.AppSettings["TemplateSavePath"].ToString().Trim()+template); Response.Clear(); Response.AppendHeader("Content-Disposition",
Time of Update: 2018-12-07
最近項目中有用到上傳Excel .Excel 中列比較多,列中的資料有些為空白,有些是有值的.在測試的過程中發現有時能讀到列中的值,有時為空白.有個和Excel 格式設定有關.如果這個列的前8行資料為空白,又沒有設定過格式,這時驅動就預設為文本,下面的行如果這個列有數值,就會讀出為空白.需要把所有要填寫數值的格子設定為數實值型別,Excel 才能正常讀取.參考:http://msdn2.microsoft.com/zh-cn/library/ms141683.aspx缺少值。Excel
Time of Update: 2018-12-07
代碼Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
GridView 中最常用的編輯和實現.Aspx 前台: <asp:CommandField ButtonType ="Button" HeaderText="修改" EditText ="修改" UpdateText ="更新" CancelText = "取消" ShowEditButton ="true" /> <asp:CommandField ShowDeleteButton="True" HeaderText="
Time of Update: 2018-12-07
GridView 中實現雙層表頭的主要思路是通過GridView 的RowCreated 方法重寫表頭.要實現如下: NPRB表單號&基本資料 |預計出關日期 | 實際出關日期 | Delay差異天數 ---------------------------------------------------------------------------------------------NPRB_NO | BU
Time of Update: 2018-12-07
項目中有一欄位只能是0.xx 的兩位小數。用Regexcheck :^0.[0-9]{2}$.因為這個欄位非必填,採用asp.net 內建的RegularExpressionValidator在前台Check.RegularExpressionValidator只在有輸入的情況下才起作用。 <asp:RegularExpressionValidator ID="revTFT" runat="server" ControlToValidate =
Time of Update: 2018-12-07
在 ASP.NET 1.0 中是ReadOnly=True會回傳的。 在 ASP.NET 2.0 中是ReadOnly=True就不會回傳了。 解決的方法: <asp:textbox id="Username" runat="server" ReadOnly="True"></asp:textbox> 去掉ReadOnly="True",改成 <asp:textbox id="Username" runat="server"></asp:textbox&
Time of Update: 2018-12-07
最近項目中有用到GridView 的列是動態產生的,並且是用模版列.尋找了網上的方法.作法如下:1. 寫一個類.主要繼承ITemplate CodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 PartBOMQuery2.WS_PartBOM2 wsPB = new PartBOMQuery2.WS_PartBOM2(); 2 string partNo = partNumber.Name; 3
Time of Update: 2018-12-07
可能是微軟一大疏忽吧,VB6缺少滾輪支援。解決方案:1.下載 http://download.microsoft.com/download/e/f/b/efb39198-7c59-4ace-a5c4-8f0f88e00d34/vb6mousewheel.exe2.解壓,只有一個VB6IDEMouseWheelAddin.dll
Time of Update: 2018-12-07
父頁面: String url = "../Public/xxxx.aspx?"; StringBuilder script = new StringBuilder(); script.Append("<script language=javascript>window.showModalDialog('"); script.Append(url); script.