首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

ascx必须放在runat。窗体标记内,该怎么解决

2012-01-21 
ascx必须放在runat。。窗体标记内不知道为什么。。ascx服务器的控件放在table内。已经加runatserver,aspx里f

ascx必须放在runat。。窗体标记内
不知道为什么。。ascx服务器的控件放在table内。已经加runat="server",aspx里form里也有runat..怎么还是这错。。不然要怎么写??

[解决办法]
确认声明ascx所在的table是在aspx的

<form runat="server">

...

<!--在这里声明的用户控件 -->

<uc:YourControl runat="server" .....>

....

</form>

热点排行