Contentplaceholder for replacing attributes?
问题 The code below works but confuses Visual Studio. Are there alternative/better ways to accomplish this? <body <asp:contentplaceholder id="BodyAttribute" runat="server"/>> 回答1: Other way <asp:contentplaceholder id="BodyAttribute" runat="server"><body></asp:contentplaceholder> and on contentPlaceholder you type <body attr="whatever"> If not place holder found, then the <body> is used. 回答2: I don't think doing this is a good idea in general. First of all, with ContentPlaceHolder s you can easily