Home All Groups Group Topic Archive Search About

Inserting HTML into a page based on conditions

Author
26 Apr 2006 10:00 PM
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

Author
26 Apr 2006 11:26 PM
Jeff Dillon
If page = "MainPage" then

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

end if

Show quoteHide quote
"RSH" <way_beyond_o***@yahoo.com> wrote in message
news:O9oNTzXaGHA.4060@TK2MSFTNGP02.phx.gbl...
>
> 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
>