|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Inserting HTML into a page based on conditionsI 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 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 >
Books: (I'm converting vb release 4 to release 8) But will eventually move it to other PCs
Writing and reading from a template Excel file using ADO.Net - results not recalculated Red Semaphore. Ideas? minimizing viewstate Managed DX - 'DrawText' ambiguous EVAL function sending values to a VB.Net exe Using a User's Control of VB.NET in a Form of VB6 shortcut key to access property panel Salamander Online Decompiler v2 available |
|||||||||||||||||||||||