Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Hyperlinks vs Buttons ? (http://www.velocityreviews.com/forums/t96589-hyperlinks-vs-buttons.html)

=?Utf-8?B?SXJmYW4gQWtyYW0=?= 02-13-2005 10:49 AM

Hyperlinks vs Buttons ?
 
Hi Guys,

I've got a simple question for all of you guys. I have just noticed that I
have alot of buttons on my screen. Is there any that those buttons be
replaced by anything more sophisticated ? e.g. HyperLinks, without getting
rid of the code that has been written on the click of the button.

Look forward to some valuable feedback.

Thanks,

I.A

Joerg Jooss 02-13-2005 11:22 AM

Re: Hyperlinks vs Buttons ?
 
Irfan Akram wrote:

> Hi Guys,
>
> I've got a simple question for all of you guys. I have just noticed
> that I have alot of buttons on my screen. Is there any that those
> buttons be replaced by anything more sophisticated ? e.g. HyperLinks,
> without getting rid of the code that has been written on the click of
> the button.


What's wrong with your buttons? The fact that they *are* buttons (and
cause form submits) or the way they look? You can make buttons look
like hyperlinks using CSS, if that's what you want.

Cheers,

--
http://www.joergjooss.de
mailto:news-reply@joergjooss.de

=?Utf-8?B?SXJmYW4gQWtyYW0=?= 02-13-2005 12:01 PM

Re: Hyperlinks vs Buttons ?
 
Yeah that will be wonderful, how can we achieve that ?

Thanks,

I.A

"Joerg Jooss" wrote:

> Irfan Akram wrote:
>
> > Hi Guys,
> >
> > I've got a simple question for all of you guys. I have just noticed
> > that I have alot of buttons on my screen. Is there any that those
> > buttons be replaced by anything more sophisticated ? e.g. HyperLinks,
> > without getting rid of the code that has been written on the click of
> > the button.

>
> What's wrong with your buttons? The fact that they *are* buttons (and
> cause form submits) or the way they look? You can make buttons look
> like hyperlinks using CSS, if that's what you want.
>
> Cheers,
>
> --
> http://www.joergjooss.de
> mailto:news-reply@joergjooss.de
>


Jeppe Dige Jespersen 02-13-2005 12:24 PM

Re: Hyperlinks vs Buttons ?
 

>> You can make buttons look like hyperlinks using CSS>>

> Yeah that will be wonderful, how can we achieve that ?>>


...or, instead of using Hyperlink or Button controls, you could use the
LinkButton control.

Jeppe Jespersen




=?Utf-8?B?VmlzaG51LUNoaXZ1a3VsYQ==?= 02-13-2005 01:21 PM

Re: Hyperlinks vs Buttons ?
 
Hi Irfan,

You can apply CSS styles to controls such as labels, linkbuttons, etc. Any
Control that contains a CssStyle property can be stylesheet(ed).

<asp:Button id="Button2" Text="Hi" CssClass="buttonStyle" runat="server"/>

You can either use an external file for getting stylesheet info or use the
<STYLE> Tag in HTML Code for the same.

A sample one can be like this.. Chenge the values to suite your need.

..buttonStyle
{ FONT-WEIGHT: bold;
FONT-SIZE: 9pt;
TEXT-TRANSFORM: capitalize;
COLOR: white;
FONT-FAMILY: Verdana;
BACKGROUND-COLOR: navy }


BTW, Instead of this as Jeppe pointed out, you can use the linkbutton

Hope this helps..

Need any help, do post a msg back...


Happy Coding

"Irfan Akram" wrote:

> Yeah that will be wonderful, how can we achieve that ?
>
> Thanks,
>
> I.A
>
> "Joerg Jooss" wrote:
>
> > Irfan Akram wrote:
> >
> > > Hi Guys,
> > >
> > > I've got a simple question for all of you guys. I have just noticed
> > > that I have alot of buttons on my screen. Is there any that those
> > > buttons be replaced by anything more sophisticated ? e.g. HyperLinks,
> > > without getting rid of the code that has been written on the click of
> > > the button.

> >
> > What's wrong with your buttons? The fact that they *are* buttons (and
> > cause form submits) or the way they look? You can make buttons look
> > like hyperlinks using CSS, if that's what you want.
> >
> > Cheers,
> >
> > --
> > http://www.joergjooss.de
> > mailto:news-reply@joergjooss.de
> >


=?Utf-8?B?SXJmYW4gQWtyYW0=?= 02-13-2005 01:33 PM

Re: Hyperlinks vs Buttons ?
 
Thanks for that....


"Vishnu-Chivukula" wrote:

> Hi Irfan,
>
> You can apply CSS styles to controls such as labels, linkbuttons, etc. Any
> Control that contains a CssStyle property can be stylesheet(ed).
>
> <asp:Button id="Button2" Text="Hi" CssClass="buttonStyle" runat="server"/>
>
> You can either use an external file for getting stylesheet info or use the
> <STYLE> Tag in HTML Code for the same.
>
> A sample one can be like this.. Chenge the values to suite your need.
>
> .buttonStyle
> { FONT-WEIGHT: bold;
> FONT-SIZE: 9pt;
> TEXT-TRANSFORM: capitalize;
> COLOR: white;
> FONT-FAMILY: Verdana;
> BACKGROUND-COLOR: navy }
>
>
> BTW, Instead of this as Jeppe pointed out, you can use the linkbutton
>
> Hope this helps..
>
> Need any help, do post a msg back...
>
>
> Happy Coding
>
> "Irfan Akram" wrote:
>
> > Yeah that will be wonderful, how can we achieve that ?
> >
> > Thanks,
> >
> > I.A
> >
> > "Joerg Jooss" wrote:
> >
> > > Irfan Akram wrote:
> > >
> > > > Hi Guys,
> > > >
> > > > I've got a simple question for all of you guys. I have just noticed
> > > > that I have alot of buttons on my screen. Is there any that those
> > > > buttons be replaced by anything more sophisticated ? e.g. HyperLinks,
> > > > without getting rid of the code that has been written on the click of
> > > > the button.
> > >
> > > What's wrong with your buttons? The fact that they *are* buttons (and
> > > cause form submits) or the way they look? You can make buttons look
> > > like hyperlinks using CSS, if that's what you want.
> > >
> > > Cheers,
> > >
> > > --
> > > http://www.joergjooss.de
> > > mailto:news-reply@joergjooss.de
> > >



All times are GMT. The time now is 04:14 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57