我使用主页,我管理这个网页时,显示以下错误信息:
a 页面只能有一台服务器侧面组件。
我如何解决这一问题?
我使用主页,我管理这个网页时,显示以下错误信息:
a 页面只能有一台服务器侧面组件。
我如何解决这一问题?
我认为你也这样做:
<asp:Content ID="Content2" ContentPlaceHolderID="MasterContent" runat="server">
<form id="form1" runat="server">
</form>
</asp:Content>
形式标签是必要的。 因为在主页上,你已经拥有同样的标签。
因此,你只是去掉了,应该工作。
它像你一样,在总页和正 throw倒错误的页上都有一个表格。
你只能有。
页: 1
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:content>
tags, and are all your controls inside these? You should only have the Form tags in the MasterPage.
Here are some of my understanding and suggestion:
Html element can be put in the body of html pages and html page does support multiple elements, however they can not be nested each other, you can find the detailed description from the W3C html specification:
rel=“nofollow noreferer”> http://www.w3.org/MarkUp/html3/forms.html。
And as for ASP.NET web form page, it is based on a single server-side form element which contains all the controls inside it, so generally we do not recommend that we put multiple elements. However, this is still supported in ASP.NET page(master page) and I think the problem in your master page should be caused by the unsupported nested element, and multiple in the same level should be ok. e.g:
In addition, if what you want to do through multiple forms is just make our page posting to multiple pages, I think you can consider using the new feature for cross-page posting in ASP.NET 2.0. This can help us use button controls to postback to different pages without having multpile forms on the page:
只使用一台服务器的侧面标记。
检查 <代码><formîat=“server”>——只应有一个。
为什么你们需要不止一个?
当你使本页成为以下代码时,就会产生同样的错误。
StringWriter str_wrt = new StringWriter();
HtmlTextWriter html_wrt = new HtmlTextWriter(str_wrt);
Page.RenderControl(html_wrt);
String HTML = str_wrt.ToString();
那么,我们怎么样?
请从“原”标签中删除“代号”“服务器”,然后界定工程。
如果您登出该网页,你需要打电话Response.End(
,以防止整页。
In my webpages I have references to js and images as such: "../../Content/Images/"Filename" In my code if I reference a file as above, it doesnt work so i have to write: "c:/miscfiles/"filename" 1-...
I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...
Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...
I m looking for best practices here. Sorry. I know it s subjective, but there are a lot of smart people here, so there ought to be some "very good" ways of doing this. I have a custom object called ...
I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...
i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...
For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!