我在VS2010上使用ext.net,在WEB上怎么也显示不出ext控件来,不知道是什么原因?
我的代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication4.WebForm1" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ResourceManager ID="ResourceManager1" runat="server">
</ext:ResourceManager>
<ext:Button ID="Button1" runat="server" Text="Submit" Width="300" Height="100"
AutoShow="True" ondirectclick="Button1_DirectClick">
</ext:Button>
<ext:Window ID="Window1" runat="server" Collapsible="true" Height="185" Icon="Application"
Title="Title" Width="350">
<Items>
</Items>
</ext:Window>
</div>
</form>
</body>
</html>
webconfig中
httphandlers 加<add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false"/>
httpmodules加<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/>
页面加引用<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
编译下就Ok了