图片 9

安装与利用,Net安装和利用

By admin in 编程 on 2019年5月7日

一.风行版本

 

二.张开文件,将包罗以下文件:

在类型支付进度中央直机关接干扰与页面样式及其用户体验等主题材料。为了缓和那么些问题由此巩固系统开垦效能和巩固人机交互本领,所以在网络直接搜索解决方案。

 

末段决定使用Ext.net举行开垦。

Ext.Net.dll 

Ext.Net**介绍:**非ExtJS,封装了ExtJS的内容,用于ASP.NET的开发。
  是1组开源的Asp.net(WebForm,MVC)组件。基于Ext.Js库开采,含有拾0四个工具,如TextBox,Combox,Button,ToolBar,StateBar,Panel,TabPanel,ExplorerBar,MenuBar,PictureBox 等多种控件并协助Ajax无刷新功效。

Ext.Net.Utilities.dll 

下载地址:
演示地址:

Ext.Net.xml 

景况:VS200五+、服务器.NET Framework三.伍+、网址系统.net 二.0+

Newtonsoft.Json.dll 

Ext.Net**特点:**
1.开外控件。能不慢的创始高视觉的用户分界面
二.300多少个示范,能让您连忙上手
3.抬高的Ext.js API提供支撑
4开源闭源双协议

Newtonsoft.Json.xml 

但今后ext.net二.二本子开端收取费用,不开源。最终3个开源版本是ext.net二.一。

 

下载后要运转Ext.Net供给 下载ASP.NET MVC三,Ext.NET要求那一个支撑

三.开荒  Visual Studio,创制C#网址项目

下载地址:http://www.microsoft.com/zh-cn/download/details.aspx?id=1491

 

图片 1

开辟菜单创立网址

下载当中的:

弹出”创造网址”窗口,选用Asp.net 网址,地位:文件体系, 说话:Visual C# 

图片 2

点击确定

发布的服务器上也亟需设置ASP.NET MVC三

四.首先应用时

安装:

在指标箱中右键点击”增多选项卡”

图片 3

选项卡名称Ext

 

在该选项卡中,右键点击“选取项”

图片 4

弹出”采取箱项”对话框,点击“浏览” ,双击选取文件目录下的”Ext.Net.dll”

图片 5


点击“料定”,就要Ext选项卡中呈现多个控件

装完后,Visual Studio中多了之类:

5.设备Web.Config

图片 6

 

Ext.Net安装和使用: 一.下载最新版本 二.张开下载文件,将富含以下文件找到:  二.1 Ext.Net.dll  2.二 Ext.Net.xml

<?xml version=”1.0″ encoding=”utf-8″?>

2.3 Ext.Net.Utilities.dll

<configuration>

2.4 Ext.Net.Utilities.xml  2.5 Newtonsoft.Json.dll  2.6 Newtonsoft.Json.xml 3.打开 Visual Studio,创建C#网址项目  3.一开采VS2010菜单创立网址  3.二弹出”创立网址”窗口,选用Asp.net 网址,地点:文件系统, 语言:Visual C# 点击明确 四.第三遍选取时 在工具箱中右键点击”增多选项卡” 选项卡名称Ext

 <configSections>

在该选项卡中,右键点击“采纳项” 弹出”选取箱项”对话框,点击“浏览” ,双击选择下载文件目录下的”Ext.Net.dll” 点击“明确”,就要Ext选项卡中出现多个控件 伍.安顿Web.Config

      <section name=”extnet” type=”Ext.Net.GlobalConfig” requirePermission=”false” />

<?xml version=”1.0″ encoding=”utf-8″?>

<configSections>

<configuration>

<extnet /> 

<configSections>

<!–         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.    –>

    <section name=”extnet” type=”Ext.Net.GlobalConfig” requirePermission=”false” />

    <system.web>

  </configSections>

        <httpHandlers>

  <!–<extnet theme=”Gray” renderScripts=”CDN” renderStyles=”CDN” initScriptMode=”Linked” />–>

            <add path=”*/ext.axd” verb=”*” type=”Ext.Net.ResourceHandler” validate=”false” />

  <extnet scriptMode=”Debug” theme=”Gray” />

        </httpHandlers>

  <!–<appSettings>

        <httpModules>

    <add key=”ShowHiddenExamples” value=”False” />

            <add name=”DirectRequestModule” type=”Ext.Net.DirectRequestModule, Ext.Net” />

    <add key=”LocalLogging” value=”True” />

       </httpModules>

    <add key=”GoogleAnalytics” value=”False” />

    </system.web>

  </appSettings>–>

       <!–         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.web>

    <system.webServer>

    <!– DO NOT change this trust level. Application MUST run in “Medium” trust. –>

        <validation validateIntegratedModeConfiguration=”false”/>

    <!– Full trust is required for the FeedViewer example because of outbound HTTP requests to fetch RSS feeds –>

        <modules>

    <trust level=”Full” />

            <add  name=”DirectRequestModule”  preCondition=”managedHandler”     type=”Ext.Net.DirectRequestModule, Ext.Net”  />

    <webServices>

        </modules>

      <protocols>

        <handlers>

        <add name=”HttpGet” />

            <add name=”DirectRequestHandler”   verb=”*”    path=”*/ext.axd”   preCondition=”integratedMode”    type=”Ext.Net.ResourceHandler” />

        <add name=”HttpPost” />

        </handlers>

      </protocols>

    </system.webServer>

    </webServices>

</configuration>

    <customErrors mode=”Off”>

 

      <error statusCode=”404″ redirect=”~/404.aspx” />

 

    </customErrors>

6.张开default.aspx。顶部加上:

    <compilation targetFramework=”4.0″ debug=”true”>

 

      <assemblies>

<%@ Register Assembly=”Ext.Net” Namespace=”Ext.Net” TagPrefix=”ext” %>

        <add assembly=”System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089″ />

 

      </assemblies>

 

    </compilation>

7.页面<form>中添加:

    <authentication mode=”Windows” />

 

    <authorization>

<ext:ResourceManager ID=”ResourceManager1″ runat=”server” />

      <allow users=”*” verbs=”GET,POST,PUT,DELETE” />

 

    </authorization>

 

    <pages controlRenderingCompatibilityVersion=”3.5″ clientIDMode=”AutoID”>

八.拖入一个Ext控件到页面。

      <controls>

如:

        <add tagPrefix=”src” src=”~/HighLighter/HighLighterButton.ascx” tagName=”SourceButton” />

 

        <add assembly=”Ext.Net” namespace=”Ext.Net” tagPrefix=”ext” />

<ext:CycleButton ID=”CycleButton1″ runat=”server” ShowText=”true” PrependText=”View As “>

      </controls>

        <Menu> 

    </pages>

           <ext:Menu ID=”Menu1″ runat=”server”>

    <httpModules>

                <Items>

   

                    <ext:CheckMenuItem ID=”CheckMenuItem1″ runat=”server” Text=”Text Only” Icon=”Note” />

      <add name=”DirectRequestModule” type=”Ext.Net.DirectRequestModule, Ext.Net” />

                    <ext:CheckMenuItem ID=”CheckMenuItem2″ runat=”server” Text=”Html” Icon=”Html” Checked=”true” />

    </httpModules>

                </Items>

    <httpHandlers>

            </ext:Menu>

      <add path=”*/ext.axd” verb=”*” type=”Ext.Net.ResourceHandler” validate=”false” />

        </Menu>

    </httpHandlers>

    </ext:CycleButton>

  </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>

    <staticContent>

      <mimeMap fileExtension=”.json” mimeType=”application/json” />

      <mimeMap fileExtension=”.woff” mimeType=”application/x-woff” />

    </staticContent>

    <modules>

   

      <add name=”DirectRequestModule” preCondition=”managedHandler” type=”Ext.Net.DirectRequestModule, Ext.Net” />

    </modules>

    <security>

      <authorization>

        <remove users=”*” roles=”” verbs=”” />

        <add accessType=”Allow” users=”*” verbs=”GET,POST,PUT,DELETE” />

      </authorization>

    </security>

    <validation validateIntegratedModeConfiguration=”false” />

    <handlers>

      <add name=”DirectRequestHandler” verb=”*” path=”*/ext.axd” preCondition=”integratedMode” type=”Ext.Net.ResourceHandler” />

    </handlers>

  </system.webServer>

</configuration>

6.展开页面增多:! 必须的

从工具栏,Ext面板中拖入多个ResourceManger,全数的Ext.NET框架页面都急需首先增添这几个ResourceManager。

图片 7


代码:
<ext:ResourceManager ID=”ResourceManager1″ runat=”server” />

柒.拖入3个Ext控件到页面。如:
累加二个ViewPort

图片 8


代码:

ext:CycleButton runat=”server” ShowText=”true”
PrependText=”View As “>
<ext:Viewport ID=”Viewport1″ runat=”server” Layout=”border”>

            <Items>

               
<ext:Panel
runat=”server” Collapsible=”True” Height=”100″ Region=”North”

                   
Split=”True” Title=”North”>

                   
<Items>

                   
</Items>

               
</ext:Panel>

               
<ext:Panel
runat=”server” Collapsible=”true” Layout=”Fit” Region=”East”

                   
Split=”true” Title=”East” Width=”175″>

                   
<Items>

                       
<ext:TabPanel runat=”server” ActiveTabIndex=”0″ Border=”false”

                            TabPosition=”Bottom” Title=”Title”>

                            <Items>

                                <ext:Panel
runat=”server” Title=”Tab
1″>

                                   
<Items>

                                   
</Items>

                                </ext:Panel>

                                <ext:Panel
runat=”server” Title=”Tab
2″>

                                   
<Items>

                                   
</Items>

                                </ext:Panel>

                            </Items>

                       
</ext:TabPanel>

                   
</Items>

               
</ext:Panel>

               
<ext:Panel
runat=”server” Collapsible=”true” Height=”100″ Region=”South”

                   
Split=”true” Title=”South”>

                   
<Items>

                   
</Items>

               
</ext:Panel>

               
<ext:Panel
runat=”server” Collapsible=”true” Layout=”accordion” Region=”West”

                   
Split=”true” Title=”West” Width=”175″>

                   
<Items>

                       
<ext:Panel
runat=”server” Border=”false” Collapsed=”True” Icon=”FolderGo”

                            Title=”Item
1″>

                            <Items>

                            </Items>

                       
</ext:Panel>

                       
<ext:Panel
runat=”server” Border=”false” Collapsed=”true” Icon=”FolderWrench”

                            Title=”Item
2″>

                            <Items>

                            </Items>

                       
</ext:Panel>

                   
</Items>

               
</ext:Panel>

               
<ext:Panel
runat=”server” Layout=”Fit” Region=”Center” Title=”Center”>

                   
<Items>

                       
<ext:TabPanel runat=”server” ActiveTabIndex=”0″ Border=”false” Title=”Center”>

                            <Items>

                                <ext:Panel
runat=”server” Closable=”true” Title=”Tab
1″>

                                   
<Items>

                          
         </Items>

                                </ext:Panel>

                                <ext:Panel
runat=”server” Title=”Tab
2″>

                                   
<Items>

                                   
</Items>

                                </ext:Panel>

                            </Items>

                       
</ext:TabPanel>

                   
</Items>

               
</ext:Panel>

            </Items>

        </ext:Viewport>

8.页面点击右键“在浏览器中查阅”效果如下:

图片 9

随后踏上Ext.Net之路

 


 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图
Copyright @ 2010-2019 澳门新葡亰官网app 版权所有