为什么Asp.Net应用套用母版页后元素ID会变得不一致?
- 内容介绍
- 文章标签
- 相关推荐
本文共计292个文字,预计阅读时间需要2分钟。
在内容页面中,此标签位置:asp:Content ID=content ContentPlaceHolderID=MainContent runat=server /asp:Content。一、form的ID变化。form id=form1 runat=server form name=aspnetForm method=post。
在内容页里,在这个标签对里:
<asp:Content ID=”content” ContentPlaceHolderID=”MainContent” runat=”server”> </asp: Content >
一、form的ID变化。
<form id=”form1″ runat=”server”> <form name=”aspnetForm” method=”post” action=”r_Balance.aspx” id=”aspnetForm”>
二、Web服务器控件的变化:ID在原基础上加了ct100_MainContent_前缀。name属性在原基础上加了ct100$MainContent$前缀。
本文共计292个文字,预计阅读时间需要2分钟。
在内容页面中,此标签位置:asp:Content ID=content ContentPlaceHolderID=MainContent runat=server /asp:Content。一、form的ID变化。form id=form1 runat=server form name=aspnetForm method=post。
在内容页里,在这个标签对里:
<asp:Content ID=”content” ContentPlaceHolderID=”MainContent” runat=”server”> </asp: Content >
一、form的ID变化。
<form id=”form1″ runat=”server”> <form name=”aspnetForm” method=”post” action=”r_Balance.aspx” id=”aspnetForm”>
二、Web服务器控件的变化:ID在原基础上加了ct100_MainContent_前缀。name属性在原基础上加了ct100$MainContent$前缀。

