Inserting HTML into a page based on conditions

  • Thread starter Thread starter RSH
  • Start date Start date
R

RSH

I have a custom WebControl that I created. The template is used sitewide.
I would like to use this template for every page but there are instances
when blocks of HTML need to be displayed only in certain instances.

How do i go about doing the following:

If page = "MainPage" then

<table><tr><td>This is the main page</td></tr</table>

end if

Thanks!
Ron
 
If page = "MainPage" then

Response.Write ("<table><tr><td>This is the main page</td></tr</table>")

end if
 
Back
Top