Hi
How can I reuse object templates in asp.net?
If I for example have several boxes on my page and I want the same header and footer on these boxes. In classic asp I would create a function called for example TemplateHead with a property holding text to display in the header and put the starting html in that function, for example
<div class="box">
<div class="header">
<% = strhedertext %>
</div>
and I would create a function to end the box, in this case it would contain only </div>
Then create the box like this
TemplateHead("This is my header text")
<some content of the box>
TemplateEnd()
How is this possible in ASP.NET without having to put html code in the program code the same way as classic asp does it?
...
Go to the complete details ...