Re: Which Control: Hyperlink or LinkButton?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello Bill,

I was referring to the HyperLink and LinkButton web server controls.

I'm building tabbed navigation for the first time. Setting the CssClass
property in the Click event of a LinkButton leaves the LinkButton active.
When I set the LinkButton Enabled property to false the Text property
remains displayed (desireable) but is greyed out (undesireable) and at the
moment I have yet to determine how I might work around this.

<%= Clinton Gallagher





"billr" <billr@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5EC4A6F5-90C0-4BC8-8BAA-48536B7E422C@xxxxxxxxxxxxxxxx
>I think it's a matter of aesthetics and how much work you want your server
>to
> do.
>
> You should remember that a simple <a href="http://greyskin.co.uk>hyper
> link</a> does not require a trip back to the server, whereas a sever
> control
> (LinkButton) does.
>
> I would say, use a LinkButton if you need to do some server-side
> processing
> when the user navigates away (usually a LinkButton will have a link to a
> URL
> within the same application), otherwise use a hyperlink.
>
> --
> Of all words of tongue and pen, the saddest are: "It might have been"
>
> Bill.Richards @ greyskin .co .uk
> http://greyskin.co.uk
>
>
> "clintonG" wrote:
>
>> Any folklore regarding the benefits of using one or the other of these
>> controls?
>>
>>
>> <%= Clinton Gallagher
>> METROmilwaukee (sm) "A Regional Information Service"
>> NET csgallagher AT metromilwaukee.com
>> URL http://metromilwaukee.com/
>> URL http://clintongallagher.metromilwaukee.com/
>>
>>
>>



.


Quantcast