c# - The MasterPage's behind code is not called -
i deployed site in local iis manager, reason when load page default.aspx c#/asp.net codes masterpage not loaded. though codes contentplaceholder show properly.
for exemple @ place there label, when @ page's source code, there nothing.
here portion of code:
<%@ master language="c#" autoeventwireup="true" codefile="masterpage.master.cs" inherits="masterpage" %> <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="head1" runat="server"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <asp:contentplaceholder id="head" runat="server"> </asp:contentplaceholder> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link href="styles/normalize.css" rel="stylesheet" /> <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" /> <!-- pour la dynamicite --> <script type="text/javascript" src="js/jquery-1.10.1.min.js"></script> <script type="text/javascript" src="tablecloth/tablecloth.js"></script> </head>
<div id="page-wrap"> <header> <div id="wrapper"> <div id="carousel_wrapper"> <div id="carousel" style="height: 260px;"> <asp:literal id="litcarousel1" runat="server" /> </div> </div> </div> <nav id="nav-normal"> <ul style="padding-left: 0px;"> <li><a href="default.aspx"><i class="icon-home icon-large"></i> accueil</a></li> <li><a href="nouscontacter.aspx"><i class="icon-envelope icon-large"></i> nous contacter</a></li> <li><a href="semaineprochaine.aspx"><i class="icon-facetime-video icon-large"></i> semaine prochaine</a></li> <li><a href="macarte57.aspx"><i class="icon-credit-card icon-large"></i> ma carte</a></li> </ul> </nav> </header> <asp:literal id="litnouveaute" runat="server" /> ..... <form id="form1" runat="server"> <div> <asp:contentplaceholder id="contentplaceholder1" runat="server"> </asp:contentplaceholder> </div> </form ......
after loading page, @ place there litnouveaute, there nothing.
is there way solve please ?
use label
if want see respective html markup on page. literal
control different label
control. there not text assigned literal
control, don't see thing on page there.
literal
control emits static text. unlike label
, cannot styled. light weight control.
Comments
Post a Comment