1.最新版本 2.打開文件,將包含以下文件: Ext.Net.dll Ext.Net.Utilities.dll Ext.Net.xml Newtonsoft.Json.dll Newtonsoft.Json.xml 3.打開 Visual Studio,創建C#網站項目 打開菜單創建網站 彈出"創 ...
1.最新版本 2.打開文件,將包含以下文件: Ext.Net.dll Ext.Net.Utilities.dll Ext.Net.xml Newtonsoft.Json.dll Newtonsoft.Json.xml 3.打開 Visual Studio,創建C#網站項目 打開菜單創建網站 彈出"創建網站"視窗,選擇Asp.net 網站,地位:文件體系, 說話:Visual C# 點擊斷定 4.初次應用時 在對象箱中右鍵點擊"添加選項卡" 選項卡名稱Ext 在該選項卡中,右鍵點擊“選擇項” 彈出"選擇箱項"對話框,點擊“瀏覽” ,雙擊選擇文件目次下的"Ext.Net.dll" 點擊“斷定”,將在Ext選項卡中呈現多個控制項 5.設備Web.Config <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" /> <configSections> <extnet /> <!-- The following system.web section is only requited for running ASP.NET AJAX under Internet Information Services 6.0 (or earlier). This section is not necessary for IIS 7.0 or later. --> <system.web> <httpHandlers> <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" /> </httpHandlers> <httpModules> <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" /> </httpModules> </system.web> <!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS. --> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" /> </modules> <handlers> <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" /> </handlers> </system.webServer> </configuration> 6.打開default.aspx。頂部添加: <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %> 7.頁面<form>中添加: <ext:ResourceManager ID="ResourceManager1" runat="server" /> 8.拖入一個Ext控制項到頁面。 如: <ext:CycleButton ID="CycleButton1" runat="server" ShowText="true" PrependText="View As "> <Menu> <ext:Menu ID="Menu1" runat="server"> <Items> <ext:CheckMenuItem ID="CheckMenuItem1" runat="server" Text="Text Only" Icon="Note" /> <ext:CheckMenuItem ID="CheckMenuItem2" runat="server" Text="Html" Icon="Html" Checked="true" /> </Items> </ext:Menu> </Menu> </ext:CycleButton>