http://www.sufeinet.com/plugin.php?id=keke_group

苏飞论坛

 找回密码
 马上注册

QQ登录

只需一步,快速开始

分布式系统框架(V2.0) 轻松承载百亿数据,千万流量!讨论专区 - 源码下载 - 官方教程

HttpHelper爬虫框架(V2.7-含.netcore) HttpHelper官方出品,爬虫框架讨论区 - 源码下载 - 在线测试和代码生成

HttpHelper爬虫类(V2.0) 开源的爬虫类,支持多种模式和属性 源码 - 代码生成器 - 讨论区 - 教程- 例子

查看: 7399|回复: 2

[ExtJs] 求ext.net+mvc配置方法

[复制链接]
发表于 2013-3-30 14:31:28 | 显示全部楼层 |阅读模式
一、开发环境
VS2010+SQL  Server 2008
二、Ext.NET安装配置
1.首先从http://www.ext.net/download/下载Ext.NET,有Ext.NET Pro 2.1和Ext.NET Pro 1.6两个版本,其中2.1中WebForms和MVC进行了分开,而1.6写的是WebForms的,但它实际上是支持MVC的,并且只有它里面才含有Ext.Net.MVC.dll这个库,所以这里我们下载1.6版的,得到文件
[code=html]    Ext.Net.dll  
    Ext.Net.MVC.dll  
    Ext.Net.Utilities.dll  
    Newtonsoft.Json.dll  [/code]
2.打开VS2010,文件->新建项目->Web->ASP.NET MVC 2 Web 应用程序,然后将上面下载下来的4个文件复制到解决方案资源管理器的Content目录下,并将它们添加进项目,然后再在引用中添加引用->浏览,找到Content目录下的
[code=html]Ext.Net.dll  
Ext.Net.MVC.dll [/code]

文件引用到项目里面。
3.首次使用时
  • 在工具箱中右键点击"添加选项卡"
  • 选项卡名称Ext
  • 在该选项卡中,右键点击“选择项”
  • 弹出"选择箱项"对话框,点击“浏览” ,双击选择下载文件目录下的"Ext.Net.dll"
  • 点击“确定”,将在Ext选项卡中出现多个控件
4.配置Web.Config
[code=html]<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false"/>
<configSections>
<extnet scriptMode="Release" />
<!--
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>
<pages>
   <controls>
    <add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
   </controls>
  </pages>
</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>
<validationvalidateIntegratedModeConfiguration="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>[/code]

5.页面<form>中添加:
<!-- 必须的-->[code=html]<ext:ResourceManager ID="ResourceManager1" runat="server" />[/code]
6.拖入一个Ext控件到页面。

7.编译运行



1. 开通SVIP会员,免费下载本站所有源码,不限次数据,不限时间
2. 加官方QQ群,加官方微信群获取更多资源和帮助
3. 找站长苏飞做网站、商城、CRM、小程序、App、爬虫相关、项目外包等点这里
发表于 2014-9-25 11:08:39 | 显示全部楼层
膜拜中....!
回复

使用道具 举报

发表于 2014-11-5 13:11:52 | 显示全部楼层
强烈支持楼主ing……
您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

QQ|手机版|小黑屋|手机版|联系我们|关于我们|广告合作|苏飞论坛 ( 豫ICP备18043678号-2)

GMT+8, 2024-4-27 07:09

© 2014-2021

快速回复 返回顶部 返回列表