做aspx网站出错的问题 110
aspx网站不能访问,出下现面错误,该怎么解决?ServerErrorin'/qj'Application.-------------------------------...
aspx网站不能访问,出下现面错误,该怎么解决?
Server Error in '/qj' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Ambiguous match found.
Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="AscxUserLink.ascx.cs" Inherits="playmu.AscxUserLink" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Line 2: <INPUT id="Hidden1" type="hidden" runat="server" NAME="Hidden1">
Line 3: <TABLE id="haiad" height="1" cellSpacing="0" cellPadding="0" width="780" border="0" runat="server">
Source File: /qj/AscxUserLink.ascx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
照龙虾的回答改后出现这个错误:
Server Error in '/qj' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'AscxUserLink'.
Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="AscxUserLink.ascx.cs" Inherits="AscxUserLink" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Line 2: <INPUT id="Hidden1" type="hidden" runat="server" NAME="Hidden1">
Line 3: <TABLE id="haiad" height="1" cellSpacing="0" cellPadding="0" width="780" border="0" runat="server">
Source File: /qj/AscxUserLink.ascx Line: 1 展开
Server Error in '/qj' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Ambiguous match found.
Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="AscxUserLink.ascx.cs" Inherits="playmu.AscxUserLink" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Line 2: <INPUT id="Hidden1" type="hidden" runat="server" NAME="Hidden1">
Line 3: <TABLE id="haiad" height="1" cellSpacing="0" cellPadding="0" width="780" border="0" runat="server">
Source File: /qj/AscxUserLink.ascx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
照龙虾的回答改后出现这个错误:
Server Error in '/qj' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'AscxUserLink'.
Source Error:
Line 1: <%@ Control Language="c#" AutoEventWireup="false" Codebehind="AscxUserLink.ascx.cs" Inherits="AscxUserLink" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Line 2: <INPUT id="Hidden1" type="hidden" runat="server" NAME="Hidden1">
Line 3: <TABLE id="haiad" height="1" cellSpacing="0" cellPadding="0" width="780" border="0" runat="server">
Source File: /qj/AscxUserLink.ascx Line: 1 展开
展开全部
忘记问楼主了 你的用户控件在引入页面时注册没有哦?
如果要用用户控件你得必须注册 比如说:
你要在default.aspx页面要引用一个用户控件BlogRight.ascx那么你必须在default.aspx开头要申明注册<%@ Register Src="BlogRight.ascx" TagName="BlogRight" TagPrefix="uc4" %>格式如:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BlogDefault.aspx.cs" Inherits="BlogDefault" %>
<%@ Register Src="BlogRight.ascx" TagName="BlogRight" TagPrefix="uc4" %>
然后第二步就是在你引用控件的地方比如说一个table里
<table>
<tr>
<td> <uc4:BlogRight ID="BlogRight1" runat="server" />
</td>
</tr>
</table>
顺便跟你解释下:TagPrefix表示定义控件位置的命名空间
TagName 指向所使用的控件名字 Src表示指向控件的源文件
我保证你这次解决, 开始时没有看清楚哈 抱歉
如果没有搞定 再找龙虾哈
如果要用用户控件你得必须注册 比如说:
你要在default.aspx页面要引用一个用户控件BlogRight.ascx那么你必须在default.aspx开头要申明注册<%@ Register Src="BlogRight.ascx" TagName="BlogRight" TagPrefix="uc4" %>格式如:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BlogDefault.aspx.cs" Inherits="BlogDefault" %>
<%@ Register Src="BlogRight.ascx" TagName="BlogRight" TagPrefix="uc4" %>
然后第二步就是在你引用控件的地方比如说一个table里
<table>
<tr>
<td> <uc4:BlogRight ID="BlogRight1" runat="server" />
</td>
</tr>
</table>
顺便跟你解释下:TagPrefix表示定义控件位置的命名空间
TagName 指向所使用的控件名字 Src表示指向控件的源文件
我保证你这次解决, 开始时没有看清楚哈 抱歉
如果没有搞定 再找龙虾哈
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询