我的第一個WatiN測試專案

真的是非常強大的工具,把它收入我的工具箱了!Page html代碼: <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

dnn5.5.1的配置

    近期想對原來的網站進行升級,原來的網站用的是win2003,sqlserver 2005 ,dnn4.8.0的。在使用的過程中發現有使用者權限丟失的問題,一直沒有找出原因,所以想升級看看。    首先架一個測試網站試試,我選擇當前的5.5.1,伺服器使用的是win2008,sqlserver 2008。基本步驟與以前有的區別,2008中IIS的配置網上說得較多我就不多說了,要記住的是在設定資料庫是以前用的web.config中的代碼如下: Code highlighting

今天百無聊賴的成果

照著UML圖,隨便寫了個Abstract Factory模式Load assembly的時候有點不一樣,因為那個目錄很怪很長,是個臨時目錄,所以我用location得到了它。很奇怪阿。怎麼放那裡,看來vs2008是不一樣阿。 string location = Assembly.GetAssembly(Type.GetType(factoryName)).Location;  factory =

Permissions (Permission) for the Event log and registry

Permissions for the Event log are driven through the registry. Each event log has an entry in the registry under the following key:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLogTo allow the ASP.NET account access to create an event

用httpmodule自動加密解密query string查詢字串

項目中經常遇到query string的加密解密問題,如果在頁面或者page base裡面處理的話總有點不爽。所以最近嘗試著用httpmodule解決。在網上看到了幾篇文章,綜合了一下,解決了postback加密過的url丟失的問題。環境asp.net

Be careful when you compare the GUID with a string

A GUID is a 128-bit number calculated so that it is globally unique after 100 nanoseconds (or so). However, if you call guid.tostring(), it will return a string in low-case, meanwhile, the GUID in database will be in upper-case.That could result in

讓單元測試項目也能同步測試主程式的APP.CONFIG

近期由於工作上的需要做了一個自動將資料更新到資料庫的小程式,採用了外掛程式的編程方式,為了能靈活的配置所需的外掛程式,將外掛程式的配置資訊添加到APP.CONFIG中,但是單元測試時卻有點小問題,測試專案的設定檔不能與主程式的設定檔同步更新,每次需手動同步。解決辦法如下:一、第一次需將主程式的APP.CONFIG複製到測試專案中。如1所示 圖1:將主程式的APP.CONFIG複製到測試專案二、在測試專案的預建置事件中添加命令,如2所示圖2:

CommandTimeout vs ConnectionTimeout

ConnectionTimeout is the one specified in your connection string and it is the time it takes for a connection.Open() invocation to wait until it gets a connection reference from the connection pool. (Default value is 15 seconds) CommandTimeout on

在delphi中引用第三方控制項時,找不到dcu的解決辦法

       好久沒有使用delphi7來編程了,由於以前的一個項目需要升級,今天又重拾delphi7。不得不說在當時delphi真的好強,可惜了borland,它曾經是我心中的英雄,編程的首選。閑話少說步入正題。       由於使用了一個自動升級的第三方組件《AutoUpgrader_Pro_for_Delphi_and_BCB_v5.0》,在新裝delphi7時已經開啟升級組件下delphi目錄中的dpk編譯安裝了。後開啟我的源碼,編譯時間出現了以下錯誤:     [Fatal

在DNN中使用SqlDataReader ExecuteReader(string connectionString, string spName, params object[] parameter

關於SqlHelper.ExecuteNonQuery的傳回值問題 SqlHelper.ExecuteNonQuerystring的兩個建構函式在傳回值方面有差異如果執行SqlHelper.ExecuteNonQuerystring(connectionString, string spName, params object[] parameterValues)則始終無法獲得傳回值如果執行SqlHelper.ExecuteNonQuery(string connectionString,

sqlserver,將視圖或表的記錄不重複的插入到另一個表

最近在做個自動更新資料的小程式,每天有幾個表的txt記錄集要更新到資料庫,並且txt記錄集中的資料列並不全用,只使用一部分。在做完更新程式後,發現還少了一個功能:自動提示重要資料的功能,在編寫時發現需要一個表記錄是否關聯表記錄是否已提示,這牽涉一個問題,插入提示記錄的表資料會重複導致重複提示,沒有必要的簡訊會發送,當然可以通過以下步驟判斷記錄是否是重複:將關鍵字段產生唯一索引 從視圖或表中讀取記錄插入到提示表

產生repeater分頁的頁碼,可以想datagrid一樣分頁。需要配合PagedDataSource 。

產生repeater分頁的頁碼,可以想datagrid一樣點擊。需要配合PagedDataSource 。public string CreatePagerLinks(PagedDataSource objPds, string BaseUrl)  {   int totalPageRanger = 3;//set page range is 5, means display five hyperlink for page selection   int pageRanger =

Concurrency violation: the DeleteCommand affected 0,一個解決dataset並發刪除衝突的方法

Set ContinueUpdateOnError = true, then do some action with the errors.     dtaMailingList.ContinueUpdateOnError = true;     int iAffectedRows = dtaMailingList.Update(dsMailingListInfo,"MailingList");    if (dsMailingListInfo.MailingList.HasErrors)   

簡單cursor 備忘

*/----------------------------------------------declare @ID nvarchar(20); --定義變數來儲存ID號declare @DATE DATETIME;  DECLARE @DFD NVARCHAR(200);          --定義變數來儲存值SET @DFD='';declare mycursor cursor for select MID,CreatedDate from FD_Menu  

SQLite3中TimeStamp的使用問題

在使用SQLite3時使用了TimeStamp,但是遇到一些問題,現總結如下:一、我的SQL語句CREATE TABLE Logs([ID] INTEGER PRIMARY KEY,[IDCardNo] VARCHAR (50),[CreatedTime] TimeStamp NOT NULL DEFAULT CURRENT_TIMESTAMP); INSERT INTO Logs([IDCardNo]) VALUES('11111111');  二、在使用SELECT時遇到的問題select

無法識別的屬性“requirePermission”

[無法識別的屬性“requirePermission”]什麼回事?  “/”應用程式中的伺服器錯誤。 配置錯誤        說明: 在處理向該請求提供服務所需的設定檔時出錯。請檢查下面的特定錯誤詳細資料並適當地修改設定檔。 分析器錯誤資訊: 無法識別的屬性“requirePermission”。源錯誤:行 11:     <section name="enterpriseLibrary.ConfigurationSource"

本地cookie被禁用,還有不能調試的問題。

希望能幫到遇到同樣問題的人。這周遇到一個問題就是本地cookie會被ie禁用,昏倒,我都加了trust site了還是沒有用。搞了好久發現應該是zone裡面的一個節點1A10的數值不知道什麼時候變成了0x00000003,應該是0x00000000。我倒阿。還有遇到一個問題,就是啟動調試的時候"Error while trying to run project: Unable to start debugging on the web server. You do not have

An error occurred during the execution of xp_cmdshell. A call to ‘LogonUserW’ failed wit

An error occurred during the execution of xp_cmdshell. A call to 'LogonUserW' failed with error code: '1385' The message for the error code is:Logon failure: the user has not been granted the requested logon type at this computer. Actually logon

關於EditUrl與NavigateURL的調用問題

好久沒有做DNN的代碼了,最近領導要對網頁改版,將以前的代碼拿出來修改(幸好儲存了源碼),在一個模組中涉及在不同Control的跳轉,發現在同一模組中的跳轉EditUrl與NavigateURL的效果是一樣的,記下以備忘。 代碼Code highlighting produced by Actipro CodeHighlighter

在sqlserver中使用bcp自動匯出資料的方法和注意事項

今天測試了下sqlserver中BCP匯出資料的功能,可以在sqlserver studio中的查詢時段中使用,也可以在命令列中使用。方法1:在查詢時段中使用。在查詢時段中使用必需通過sp_configure開啟xp_cmdshell的運行許可sp_configure設定開啟xp_cmdshell的指令碼  1 -- To allow advanced options to be changed. 2 EXEC sp_configure 'show advanced options', 1 3 

總頁數: 61357 1 .... 10380 10381 10382 10383 10384 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.