J
Jill Graham
Hi,
I have an asp .net page which includes several custom user controls.
Each user control has its own template (.ascx file)
Now, I want my graphical people to be able to add a link to a stylesheet
file on top of the template file.
This link should then be included in the head section of the page.
This means that the user control should pass the stylesheet link to the page
and the page should insert the stylesheet link into its head section.
It looks like this :
my asp .net page :
-------------------
<html>
<head>
<ab:header id="_header" runat="server">
</head>
<body>
<ab:myControl id="_myControl" runat="server">
</body>
</html>
the .ascx file of myControl :
----------------------------
<ab:addCSS runat="server"><link rel="stylesheet" type="text/css"
href="/stylesheets/main.css"></ab:addCSS>
<table>
<tr><td>blablabla</td></tr>
</table>
The control addCSS in the template file should take the stylesheet link,
pass it to the parent page which includes the link in the ab:header
placeholder.
Jill
I have an asp .net page which includes several custom user controls.
Each user control has its own template (.ascx file)
Now, I want my graphical people to be able to add a link to a stylesheet
file on top of the template file.
This link should then be included in the head section of the page.
This means that the user control should pass the stylesheet link to the page
and the page should insert the stylesheet link into its head section.
It looks like this :
my asp .net page :
-------------------
<html>
<head>
<ab:header id="_header" runat="server">
</head>
<body>
<ab:myControl id="_myControl" runat="server">
</body>
</html>
the .ascx file of myControl :
----------------------------
<ab:addCSS runat="server"><link rel="stylesheet" type="text/css"
href="/stylesheets/main.css"></ab:addCSS>
<table>
<tr><td>blablabla</td></tr>
</table>
The control addCSS in the template file should take the stylesheet link,
pass it to the parent page which includes the link in the ab:header
placeholder.
Jill