<<I shouldn' have to use a UC just to include some text.>>
Agreed, and you don't have to. Check out the Literal control. You just need
to set its Text property. The only thing that will show up on the rendered
page is the string you set for it (and in the location on the page in which
you have located the Literal control at design time).
-GH
"Darrel" <> wrote in message
news:...
> > Why not ditch "Response.Write" statements as well as INCLUDE directives
> > and start using .NET techniques such as labels (instead of
response.write)
> > and User Controls (instead of SSI's)?
>
> Because sometimes all you need is a response.write and an SSI. ;o)
>
> I like .net, but really, I shouldn' have to use a UC just to include some
> text.I find .net a huge improvement, but there's a lot of overkill at the
> basic level.
>
> In the end, I've got it working by opening the file, reading it into a
> string, and sending the string back to the page. It works fine, but seems
a
> lot more complicated than a simple old include file ;o)
>
> -Darrel
>
>
|