Time of Update: 2018-12-05
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-05
1)前台 <%@ 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="
Time of Update: 2018-12-05
WM終端安裝包製作 一、INF檔案介紹 1.inf檔案是由一系列段組成,段的定義放在廣括弧中,段名不能超過255位元組,名字不區分大小寫。每一個段描述了檔案的目標地址,捷徑,註冊設定等資訊,這些都會被寫入.cab檔案中。各個段可以隨意排放次序。 2.各段描述 A.[Version]是必需的,可以指定應用程式的建立者和版本 Signature="$Windows NT$" ; 必選項。
Time of Update: 2018-12-05
set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOcreate PROCEDURE [dbo].[GuestBook_DeleteGuestBookById] @Id intASBEGIN begin tran Del--開始事務 DECLARE @DelError int--定義記錄錯誤數的變數 delete GuestBook where Id=@Id --執行SQL語句1 set @DelError=@DelError+@@ERROR--設定錯誤數量
Time of Update: 2018-12-05
ASCII碼對照表ASCII碼鍵盤ASCII 碼鍵盤ASCII 碼鍵盤ASCII 碼鍵盤27ESC32SPACE33!34"35#36$37%38&39'40(41)42*43+44'45-46.47/48049150251352453554655756857958:59;60<61=62>63?64@65A66B67C68D69E70F71G72H73I74J75K76L77M78N79O80P81Q82R83S84T85U86V87W88X89Y90Z91[92\93]9
Time of Update: 2018-12-05
綁定資料: DataTable DT = new DataTable; if (DT != null && DT.Rows.Count > 0) { ImageList il = new ImageList(); il.ImageSize = new System.Drawing.Size(1, 20);//行高
Time of Update: 2018-12-05
public void SetCookie(string userName, string role,string cookieValueName) {FormsAuthentication.FormsCookieName FormsAuthenticationTicket myTick = new FormsAuthenticationTicket(1, userName, System.DateTime.Now.AddMinutes(30),DateTime.Now,
Time of Update: 2018-12-05
sql預存程序定義欄位@RetValue int outas select @RetValue=xxxx from .......cs代碼:SqlCommand com = new SqlCommand("預存程序名",con對象);//建立SQL命令com.CommandType = CommandType.StoredProcedure;//指定使用SQL預存程序com.Parameters.Add("@RetValue", SqlDbType.Int).Direction =
Time of Update: 2018-12-05
1.字串函數 :datalength(Char_expr) 返回字串包含字元數,但不包含後面的空格length(expression,variable)指定字串或變數名稱的長度。 substring(expression,start,length) 不多說了,取子串 right(char_expr,int_expr) 返回字串右邊int_expr個字元 concat(str1,str2,...)返回來自於參數連結的字串。datalength(Char_expr)
Time of Update: 2018-12-05
在WinForm 開發中經常用到ListView控制項綁定顯示DataTable資料,下面記錄下主要代碼: 代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->DataTable AccountDt=DT;if (AccountDt != null) { ArrayList
Time of Update: 2018-12-05
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-05
好多朋友經常想 點擊一個特定一特性的div 然後顯示或者隱藏另外一個與之相對應的div 讓我們看看下面的代碼實現點擊aaa 顯示 bbbb代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><script language=javascript src="> <SCRIPT LANGUAGE="JavaScript"> &
Time of Update: 2018-12-05
兩個CheckBox一個在header一個在item(chbItem)設定header的CheckBox的AutoPostBack為True引發以下事件 protected void chbAll_CheckedChanged(object sender, EventArgs e) { if (((CheckBox)sender).Checked)//選中當前頁面所有行 { foreach (GridViewRow row in
Time of Update: 2018-12-05
需求:需要在許多子表單中關閉整個程式(WPF)winform實現:Application.Exit();WPF實現: App.xaml檔案: <Application x:Class="pc.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Time of Update: 2018-12-05
代碼 Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-05
DotNetTextBox是一個很不錯的線上編輯工具,我一直在用它。最近使用中發現它和window的history對象有衝突,原因就是它定義了一個全域的名為history的對象,覆蓋預設的window.history。所以當你想在頁面中調用“後退”功能(window.history.go(-1))時會產生指令碼錯誤,找不到對象或方法。解決方案:在history物件變數前定義一全域變數引用window.history。如:var History = window.history;以後如訪問“後退”
Time of Update: 2018-12-05
當你在安裝了.NET Framework 4.0以上版本後,當你的應用程式以.NET Framework 4.0為架構版本,你的任意伺服器請求,都將被進行伺服器請求驗證(ValidationRequest),這不僅包括ASP.NET,同時也包括Web Services等各種HTTP請求,不僅僅針對aspx頁面,也針對HTTP Handler,HTTP Module等,因為這個驗證(Valify)的過程,將會發生在BeginRequest事件之前。
Time of Update: 2018-12-05
改註冊表.屏蔽IME.註冊表,找到HKEY_CLASSES_ROOT\CLSID\,其下每個IME都有一個登錄機碼,如:手寫:{9E06C6B8-FE4D-4206-9A5B-6E4C1B8B6AD7}拼音輸入:{F50603D1-CF2F-41d8-A74B-651226633FF0}全屏手寫輸入:{5AAFAF99-8D99-4466-A66D-95C44B608A84}點訊梅花輸入:{655CB1DE-3D81-4bda-922C-DCF5E248820B}海鷹飛翔:{B885D202-A
Time of Update: 2018-12-05
刪除選中資料protected void lbtnDelSeleted_Click(object sender, EventArgs e) { CQ_Music myMusic=new CQ_Music();//這裡是一個對音樂操作的類 for (int i = 0; i < gvMusic.Rows.Count; i++) { if
Time of Update: 2018-12-05
這裡刪除不常用的,只留下節點<?xml version="1.0"?><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <configSections> </configSections> <appSettings> <add key="identifier" value="63B362AB3FE9FA8DEEB2C1