用服务器端控件的时候,在控件属性里边加上AutoPostBack就可以了
解决方案 »
- Ajax扩展控件版本问题
- VSS是不是跟AnkhSVN有冲突?
- 现在要求做一个模拟CSDN网站的ASP.NET版本网站!只实现其部分功能有业务逻辑能给我提供吗?拜托!
- treeview在母版页中样式失效
- 求了解System.Web.UI.Page的页面OnLoad是如何处理 <% %> 标签的
- 关于Ajax无法得到返回的xml.请大家看看
- C#的web应用:无法建立web项目
- 问个问题!急,特别急!(再次提问)在线等候解决后立即结帖!
- 在一个Solution里面,一个工程如何调用另一个工程里面的usercontrol???
- 错误 5 未能加载类型“warehouse.Quit”。
- 困扰我半月之久的数据换行问题
- 在asp.net中还可以使用原来的activex 控件马?
<%@ OutputCache Duration="60" VaryByParam="none" %>
<%@ Register TagPrefix="Acme" TagName="Menu" Src="Menu.ascx" %><html>
<body>
<table>
<tr>
<td>
<Acme:Menu Category="LeftMenu" runat=server/>
</td>
<td>
<h1>Hi, the time is now: <%=DateTime.Now%> </h1>
</td>
<td>
<Acme:Menu Category="RightMenu" runat=server/>
</td>
<tr>
</table>
</body>
</html>
<%@ Register TagPrefix="Acme" TagName="Menu" Src="Menu.ascx" %><html>
<body>
<table>
<tr>
<td>
<Acme:Menu Category="LeftMenu" runat=server/>
</td>
<td>
<h1>Hi, the time is now: <%=Now%> </h1>
</td>
<td>
<Acme:Menu Category="RightMenu" runat=server/>
</td>
<tr>
</table>
</body>
</html>
<%@ Register TagPrefix="Acme" TagName="Menu" Src="Menu.ascx" %><html>
<body>
<table>
<tr>
<td>
<Acme:Menu Category="LeftMenu" runat=server/>
</td>
<td>
<h1>Hi, the time is now: <%=DateTime.Now%> </h1>
</td>
<td>
<Acme:Menu Category="RightMenu" runat=server/>
</td>
<tr>
</table>
</body>
</html>