Algo así seria
VB.NET
Código ASP:
Ver original<Assembly: WebResource("WhoIsLooking.WhoIsLooking.css", "text/css")>
C#
Código ASP:
Ver original[Assembly: WebResource("WhoIsLooking.WhoIsLooking.css", "text/css")]
Finally, the WhoIsLooking control includes the following lines of code in its OnPreRender() method:
VB.NET
Código ASP:
Ver original' Add style sheet to parent page
Dim cssUrl As String = Page.ClientScript.GetWebResourceUrl(Me.GetType(), "WhoIsLooking.WhoIsLooking.css")
Dim cssLink As New HtmlLink()
cssLink.Href = cssUrl
cssLink.Attributes.Add("rel", "stylesheet")
cssLink.Attributes.Add("type", "text/css")
Page.Header.Controls.Add(cssLink)
' Add class name
Me.CssClass = "WhoIsLooking"
C#
// Add style sheet to parent page
Código ASP:
Ver originalstring cssUrl = Page.ClientScript.GetWebResourceUrl(this.GetType(),
"WhoIsLooking.WhoIsLooking.css");
HtmlLink cssLink = new HtmlLink();
cssLink.Href = cssUrl;
cssLink.Attributes.Add("rel", "stylesheet");
cssLink.Attributes.Add("type", "text/css");
this.Page.Header.Controls.Add(cssLink);
// Add class name
this.CssClass = "WhoIsLooking";