By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,877 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,877 IT Pros & Developers. It's quick & easy.

Which Control: Hyperlink or LinkButton?

P: n/a
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/
Aug 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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/

Aug 17 '05 #2

P: n/a
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" <bi***@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
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/


Aug 18 '05 #3

P: n/a
> When I set the LinkButton Enabled property to false the Text property
remains displayed (desireable) but is greyed out (undesireable) and at the
Erm ... this is in keeping with windows (and other OS) controls, how else is
the user to know that the functionality is not available?
--
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:
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" <bi***@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
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/


Aug 18 '05 #4

P: n/a
I understand. I don't see greyed out properties used much in web forms. Not
at all that I have seen now that I think about it. The problem is the
properties of the control are all or nothing and can not be over-ridden
using CSS once the Enabled property is set to false.

After a quick review of the source I found what may be a solution [1]. For
now due to time constraints I can cope with the greyed out text properties.

<%= Clinton Gallagher

[1] http://altinoren.com/showhidebutton.htm
"billr" <bi***@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
When I set the LinkButton Enabled property to false the Text property
remains displayed (desireable) but is greyed out (undesireable) and at
the


Erm ... this is in keeping with windows (and other OS) controls, how else
is
the user to know that the functionality is not available?
--
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:
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" <bi***@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
>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/
>>
>>
>>


Aug 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.