调试做答,出错在哪?

hiweiyi2000 hiweiyi2000 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" Language="C#"%>
<Mobile:Form Runat="Server">
<DeviceSpecific>
<Choice Filter="IsWML">
<HeaderTemplate>
<b>Welcome to this Web site!</b>
<br/>
</HeaderTemplate>
<FooterTemplate>
<small>All Content Copyrighted 2001</small>
</FooterTemplate>
</Choice>

<Choice Filter="IsHTML32">
<HeaderTemplate>
<table width="100%" bgcolor="yellow">
<tr>
<td>
welcome to this Web site!
</td>
</tr>
</table>
</HeaderTemplate>
<FooterTemplate>
<hr>
<small>All Content Copyrighted © 2001 </small>
</FooterTemplate>
</Choice>
<Choice>
<HeaderTemplate>
<b>Welcome to this Web Site!</b>
<br/>
</HeaderTemplate>
</Choice>
</DeviceSpecific>
<Mobile:Label
Runat="Server">
Here is the main body of the page!
</Mobile:Label>
</Mobile:Form>


错误提示:
“/s”应用程序中的服务器错误。
--------------------------------------------------------------------------------

在名为“IsWML”的页(该页返回 System.Boolean 并将 System.Web.Mobile.MobileCapabilities 和 System.String 视为参数)上既找不到名为“IsWML”的设备功能,也找不到公共非静态方法。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 在名为“IsWML”的页(该页返回 System.Boolean 并将 System.Web.Mobile.MobileCapabilities 和 System.String 视为参数)上既找不到名为“IsWML”的设备功能,也找不到公共非静态方法。

...全文
评论 4
收藏 已收藏
分享
返回顶部
hiweiyi2000
.NET社区 62,275 成员 668,968 内容