VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > 编程开发 > c#教程 >
  • C#教程之C#教程之Ext.Net安装和应用

本站最新发布   C#从入门到精通
试听地址  
https://www.xin3721.com/eschool/CSharpxin3721/

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>
相关教程