Connecting Tech Pros Worldwide Forums | Help | Site Map

Inserting HTML into a page based on conditions

RSH
Guest
 
Posts: n/a
#1: Apr 26 '06

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



Jeff Dillon
Guest
 
Posts: n/a
#2: Apr 27 '06

re: Inserting HTML into a page based on conditions


If page = "MainPage" then

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

end if

"RSH" <way_beyond_oops@yahoo.com> wrote in message
news:O9oNTzXaGHA.4060@TK2MSFTNGP02.phx.gbl...[color=blue]
>
> 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
>[/color]


Closed Thread


Similar Visual Basic .NET bytes