Click here to Skip to main content
15,879,096 members
Articles / Web Development / ASP.NET

Advanced Paging GridView with ASP.NET 2.0/3.5

Rate me:
Please Sign up or sign in to vote.
3.68/5 (13 votes)
7 Nov 2008CPOL 94.1K   2.3K   49  
Advanced paging GridView with ASP.NET 2.0/3.5
<?xml version="1.0"?>
<!-- 
    注意: 除了手動編輯這個檔案以外,您也可以使用 
    Web 管理工具設定您的應用程式設定值。請使用 
    Visual Studio 中的 [網站] -> [ASP.NET 組態] 選項。
    如需完整的設定與註解清單,請參考 
    machine.config.comments (通常位於 
    \Windows\Microsoft.Net\Framework\v2.x\Config) 
-->
<configuration>
	<appSettings/>

  <connectionStrings>

    <!-- connect to Northwind of SQL Server 2005 in your PC -->
    <add name="ConnString_OleDb" connectionString="Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=Northwind;Integrated Security=true;;charset=utf8;Connection Timeout=60" providerName="System.Data.OleDb"/>
    <add name="ConnString_SqlClient" connectionString="Data Source=localhost;Initial Catalog=Northwind;Integrated Security=true;;Connection Timeout=60" providerName="System.Data.SqlClient" />

  </connectionStrings>
  
	<system.web>
		<!-- 
            設定 compilation debug="true" 會將偵錯 
            符號插入編譯過的頁面。因為這樣會
            影響效能,所以只有在開發期間才能將
            這個值設定為 true。
        -->
		<compilation debug="true"/>
		<!--
            <authentication> 區段可以用來設定 ASP.NET 
            使用的安全性驗證模式,以識別連入的 
            使用者。 
        -->
		<authentication mode="Windows"/>
		<!--
            <customErrors> 區段可以用來設定 
            在執行要求期間發生未處理 
            錯誤時所要執行的動作。具體來說,
            它可以讓開發人員設定要顯示的 HTML 錯誤網頁, 
            以取代錯誤堆疊追蹤。

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
	</system.web>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Taiwan Taiwan
A young programmer in Taipei City, Taiwan. Earn little money and just coding for fun.

Comments and Discussions