Jump to content

CSS no ASP.NET


Leo Moura
 Share

Go to solution Solved by nelsonr,

Recommended Posts

Olá pessoal!

Minha dúvida:

Abaixo , podemos ver o código (parte do código) da minha masterpage

<body>
   <form id="form1" runat="server">
   <div>
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
    <div id ="Login">
    Welcome
    <asp:LoginName ID="LoginName1" runat="server" Font-Bold="true" />
    <br />
    <br />
    <asp:LoginStatus ID="LoginStatus1" runat="server" />
   </div>
	 </asp:ContentPlaceHolder>
   </div>
   </form>
</body>

e abaixo minha página Home ,que está associada a Masterpage

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

</asp:Content>

Se a <div id ="Login"> está na Masterpage junto de ContentPlaceHolder1" que tambem aparece na página home ,por que essa div não aparece na página Home?

Como posso fazer para essa <div> sempre aparecer nas outras páginas associadas a masterpage?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.