Time of Update: 2018-12-06
在websevrice 中,soap header是十分重要的哦,主要是安全性的考慮,在asp.net 2.0中,可以簡單地應用soap header來進行傻瓜式的應用,更複雜的應用當然要更深入地去看了,首先,我們寫個簡單的helloworld的webserviceusing System;using System.Web;using System.Web.Services;using
Time of Update: 2018-12-06
using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Web;using System.Web.UI;using System.Xml;using System.Drawing;using System.Configuration;using System.Web.UI.WebControls;using
Time of Update: 2018-12-06
using System;using System.Collections;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.OleDb;using InsApp.word;using InsApp.log4;namespace InsApp.Linkdata{ /// <summary> /// static OleDbConnection
Time of Update: 2018-12-06
.NET Mass Downloader
Time of Update: 2018-12-06
部落格開通了。寫寫關於自已,寫下自已的代碼 今天在網上看到一段話,成功人士的七個管理辦法。想想自已。走過了二十三年的風風雨雨曆程,自已和成功還相差多遠,我希望成功。我能成功。 1.每件事的發生,皆有其原因,皆有利於我;2.沒有失敗,只有結果;過去並不代表未來;3.每個人都有無限的潛力;4.我是100%負責任的人;5.我熱愛自己的工作;6.每天進步一點點;7.立即行動,全力以赴,堅持到底
Time of Update: 2018-12-06
主要是web上傳到伺服器,然後讀取excel中資料並儲存到資料庫的過程,伺服器端會存在c#是否有許可權使用excel com組件的問題! 匯出也是。具體解決方案如下:1:在伺服器上安裝office的Excel軟體.2:在"開始"->"運行"中輸入dcomcnfg.exe啟動"元件服務"3:依次雙擊"元件服務"->"電腦"->"我的電腦"->"DCOM配置"4:在"DCOM配置"中找到"Microsoft Excel
Time of Update: 2018-12-06
#region ReadMenu(string FilePath)讀取配置文檔中的資訊 /// <summary> /// 讀取配置文檔中的資訊 /// </summary> /// <param name="FilePath">網站設定檔</param> /// <param name="ArrayLength">數組長度</param> /// <param
Time of Update: 2018-12-06
--先新增一個備份欄位 alter table tbUser add UserId_bak int go --將自增欄位資料轉換到備份欄位 update tbUser set UserId_bak = UserId go --刪除自增欄位 (如果此自增欄位設定了主鍵要先刪除主鍵) alter table tbUser DROP PK_tbUser go alter table tbUser drop column UserId go
Time of Update: 2018-12-06
什麼是 Cookie? Cookie 是一小段文本資訊,伴隨著使用者請求和頁面在 Web 服務器和瀏覽器之間傳遞。使用者每次訪問網站時,Web 應用程式都可以讀取 Cookie 包含的資訊。Cookie 最根本的用途是 Cookie 能夠協助 Web 網站儲存有關訪問者的資訊。更概括地說,Cookie 是一種保持 Web 應用程式連續性(即執行“狀態管理”)的方法。 我參考了 xxol.net 上一篇關於Cookies的連載,花了近一周的時間把這篇發章發完了,並提供了C#版本源碼。原文是用VB.
Time of Update: 2018-12-06
1.安裝jdk並配置環境變數 下載:jdk1.5.0_08:有了這個安裝程式,你就可以開發和運行跟JAVA有關的程式 按照JDK的提示來安裝,安裝完之後設定環境變數 JDK環境變數配置的步驟如下: 1.我的電腦-->屬性-->進階-->環境變數. 2.配置使用者變數: a.建立 JAVA_HOME C:\Program Files\Java\j2sdk1.5.0 (JDK的安裝路徑) b.建立 PATH %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
Time of Update: 2018-12-06
using System;using System.Collections.Generic;using System.Text;using System.IO;using InsApp.log4;namespace InsApp.word{ /// <summary> /// 對檔案和檔案夾的操作 /// </summary> public class FileClass : CreateCode { Type type =
Time of Update: 2018-12-06
日常工作生活中,與人相處,遇到別人做事出錯時,如何批評,一直是個難題,下面教你7個批評人的注意事項,試試看吧,肯定會收到好的效果:批評必須在單獨相處時提出 批評前必須略微地給予讚揚或恭維 批語時,不要針對人,批評某種行為,而不要批評某個人 提供答案 請求合作,而不是命令 一次犯錯,一次批評 以友好的方式結束批評
Time of Update: 2018-12-06
using System;using System.Collections.Generic;using System.Text;using System.Xml;using System.IO;using System.Net;using System.Web;using InsApp.word;namespace InsApp.WebSearch{ public class ReadWebSiteXml { ///讀取網站配置文檔
Time of Update: 2018-12-06
using System;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Collections;using System.Collections.Generic;namespace SqlDataProvider{ #region SqlHelper簡化版資料庫操作類 public abstract class SqlHelper {
Time of Update: 2018-12-06
-------------------表if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Code]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[Code]GOCREATE TABLE [dbo].[Code] ( [id] [int] IDENTITY (1, 1) NOT NULL , [code] [varchar] (
Time of Update: 2018-12-06
判斷當表存在識別欄位的時候就要允許將顯式值插入表的識別欄位中,設定:Set Identity_Insert TableName Off判斷資料類型如,varchar,char,datetime,nvarchar,nchar,uniqueidentifier時候,在Insert欄位中就要增加雙引號,否則就不加;Use TestGoDeclare @Table1 nvarchar(128), @Table2 nvarchar(128), @Sql1
Time of Update: 2018-12-06
php+mysql<form action="" method="post"> <table class="opt"> <tr> <th colspan="2">新聞標題:</th> </tr> <tr> <td><input type="text" class="txt" style="width: 500px" name="title" /&
Time of Update: 2018-12-06
有時候需要把資料庫中表記錄都刪除掉,為了方便我們有必要製作一個清空資料庫的指令碼,這裡主要是考慮存在外鍵約束,和識別欄位問題。存在外鍵關係時候就要查詢出,先要刪除哪一張表,後要刪除哪一張表,當存在識別欄位的時候,就要DBCC Checkident 來重新設定標識值Declare @Sql nvarchar(Max);With T1As( Select Convert(int,0) as LevelNo,fkeyid,rkeyid From sys.sysforeignkeys
Time of Update: 2018-12-06
經常來部落格園找資料。今天也發布一點點原創。using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using
Time of Update: 2018-12-06
載入foot模組頁#parse("foot.vm")#foreach($item in $tables) #set($strEnd = $item.Length - 1) #set($sheetName = $item.Substring(0, $strEnd)) <option value="$item">$sheetName</option>#end$strEnd也可以看做一個字串來操作$item.Substring(0,15) 取出從0開始的15個字元-------