473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Nov 19 '05 #1
5 1535
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:ne********@joergjooss.de
Nov 19 '05 #2
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:ne********@joergjooss.de

Nov 19 '05 #3
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

Nov 19 '05 #4
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:ne********@joergjooss.de

Nov 19 '05 #5
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:ne********@joergjooss.de

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Laphan | last post by:
Hi All Wondered if you could help me even though the NG might not be the most relevant to my query. Basically I have a WinXP machine (SP1 with all web updates don't want to upgrade to SP2...
6
by: Colleyville Alan | last post by:
I have an application that has an Access table that stores the locations of slides in a Powerpoint file. This used to work fine when there were about 4 files and 200 slides. The database would...
1
by: Darryl Neale | last post by:
I have been tasked with reviving an old database that stopped working about 3 years ago :( On one of the tabs is a list of links to other databases utilising the Hyperlink feature of MS Access...
0
by: Tim | last post by:
Access 97: I have a table with a hyperlink field that I display on a form. I can click on the form field and the hyperlink activates correctly. However, if I try to activate the hyperlink using VB...
1
by: Brett | last post by:
Hi, Here's a strange one: I have built a single page model for a website, that uses 3 panel controls which load usercontrols dynamically, based on the querystring PageMode parameter that you...
4
by: Seefor | last post by:
Hi, I want my text hyperlinks to have a dotted border underneath, so I did this which works fine: a, a:link, a:visited, a:hover, a:active { color: #000; text-decoration: none;
1
by: Robin | last post by:
Hello! I'm having trouble with links and hyperlinks in MS Access 2003 - any help would be great! Question 1! The "insert hyperlink" icon opens a browser window, allows the user to browse...
1
by: Janna | last post by:
Hello tech savvy gurus! I hope someone can help me! THE PROBLEM: "Cannot open specified file" when I click on a hyperlink in an Access database when it is located on our server. THE...
4
by: jonny | last post by:
I would like to add a password and user name to my website. If the username and password is correct than activate the hyperlinks and buttons. Could you please share some code how how to achieve...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.