[Mono-dev] Head tag link not mapped to server object

APS dev.malst at apsystems.it
Fri May 15 10:40:25 EDT 2009


Hi everyone,

I've an ascx control that contains the following html code:

         <head>
             <title runat="server" id="title"></title>
             <meta http-equiv="Content-Type" content="text/html; 
charset=utf-8" />
             <meta http-equiv="PRAGMA" content="NO-CACHE"/>
             <link runat="server" id="styleSheet" type="text/css" 
rel="stylesheet" href="default.css" />
         </head>


in the c# codebehind I mapped

         protected System.Web.UI.HtmlControls.HtmlGenericControl styleSheet;
         protected System.Web.UI.HtmlControls.HtmlGenericControl title;

The title is correctly mapped and I can set his properties, the 
styleSheet is always null.
I'm doing something wrong? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090515/1269d960/attachment-0001.html 


More information about the Mono-devel-list mailing list