Inserting HTML into a page based on conditions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RSH

    Inserting HTML into a page based on conditions


    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

    #2
    Re: Inserting HTML into a page based on conditions

    If page = "MainPage" then

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

    end if

    "RSH" <way_beyond_oop s@yahoo.com> wrote in message
    news:O9oNTzXaGH A.4060@TK2MSFTN GP02.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]


    Comment

    Working...