STEP 1 - MUST define server valid path you should apply a valid andEXISTING !! folder on the SERVER from where to get the attach file.Usually this is the Upload folder path.you should get it that way :string ValidServerPath =
首先要引用一個命名空間Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System.Runtime.Serialization.Formatters.Binary;接著就是對你要序列化的對象進行序列化了Code highlighting produced by Actipro CodeHighlighter (freeware)http:
下面的預存程序,ID1是同時作為輸入輸出參數的。 CREATE Procedure usp_test @ID1 int output, @ID int AS IF @ID1 = 0 BEGIN SELECT * FROM Customers SET @ID1 = 1 end ELSE begin SELECT Employees.* FROM Employees SET @ID1 = 2 end GO
MSDN中指出,DataSet序列化是要調用WriteXml產生。但是當我們的一個類中包含有一個類型為DataSet的屬性時,直接使用XmlSerializer來做Serialize產生的XML檔案中,DataSet是必然帶有schema資訊的。這樣是無可厚非的,如果不這樣是無法還原序列化的。可是我們也許有時需要DataSet產生的XML只包括資料,並不關係結構。這樣就需要寫一個DataSet衍生類別,同時為了實現XML序列化,需要實現IXmlSerializable介面 class
(讀自http://www.dotnetbips.com/displayarticle.aspx?id=147 有原始碼下載)這個問題的出現是因為RadioButtons控制項是不能直接加在DataGrid的模板列的。因為DataGrid會給每個選項按鈕產生一個唯一名,這樣這些選項按鈕就不是一個組的了。解決問題的辦法是,在模板列中加入一個Label控制項。在DataGrid的ItemDataBound事件中寫<INPUT>元素,如: If e.Item.ItemType
今天遇到TEXTBOX在多行情況下的最大長度問題,網上有一些解決方案,但是都不是我最終需要的,不過還是整理了一下,差不多符合要求了。此JAVASCRIPT方法還有一個地方需要解決,就是控制不了使用者在複製、粘貼的情況下輸入。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> function textCounter(field, maxlimit)
也許在新版本的VS中不會有此問題,可能環境中已經包含了高版本的CAPICOM.dll。我在2005中發布了一個小測試專案就遇到了此問題。大概提示為:“SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the latest version of CAPICOM.dll into the directory that contains SignTool.exe. If