Thanks. However I do not see a "link" control. I have a LinkButton and
Hyperlink control, but don't think that's it.
Can you please clarify specifically what you mean by link control? Also can
you provide a one line snippet that demonstrates how a link control would be
set to a value based on a variable set within a code behind page?
Thanks,
Steve
"Lucas Tam" <> wrote in message
news:Xns96C3B13F4733nntprogerscom@127.0.0.1...
> "Steve Franks" <> wrote in
> news:F4WdnZ2dnZ0bcze4nZ2dnbyPiN6dnZ2dRVn-:
>
>> Now from my main page (test.aspx) I want to either write out HTML that
>> sets the style sheet to "mainStyle.css" or "alternateStyle.css"
>> depending on the value of this useAlternateStyle variable.
>>
>> What is the best way to do this?
>
> If you only want to switch the style sheet, then add "runat=server"
> property to the link control... now you'll have access to it in the code
> behind.
>
> Otherwise take a look at the literal control and HTMLGeneric Control.
>
> --
> Lucas Tam ()
> Please delete "REMOVE" from the e-mail address when replying.
>
> Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com