我可以同时在主页和内容页面中同时运行服务器标记吗? [英] Can I User Runat Server Tag In Master Page And Content Page Both In Same Time?

查看:67
本文介绍了我可以同时在主页和内容页面中同时运行服务器标记吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码contentplaceholder在runat =server的表单中,我想在内容页面中使用带有runat =server的表单。

i my code contentplaceholder is inside the form with runat="server" and i want to use form with runat="server" in content page.

推荐答案

母版页也是webforms,除了它将与内容页面结合以在运行时形成单个页面



所以我们不能同时使用表单标签。 ...我们可以在内容页面或母版页中使用它..:)
Master pages are are also webforms, except that it will combine with content pages to form a single page at runtime

So we cannot use form tag in both at a time....we can use it in either content page or master page .. :)


这篇关于我可以同时在主页和内容页面中同时运行服务器标记吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆