473,847 Members | 2,440 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LinkButton & Hyperlink

Not sure if this is the proper group to post this but its worth a shot:

Is there a project property setting that gives hyperlinks and linkButtons
the "rollover" effect with underlining?

Right now, it is somehow defaulted to an automatic underline which I only
want displayed when the user moves the pointer over the link.

Any help would be grealy appreciated.

Ken
Nov 18 '05 #1
3 4209
Use css for this since asp:hyperlink and the link button get rendered as
hyperlinks.
"Ken Saganowski" <ks*********@hi llier.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Not sure if this is the proper group to post this but its worth a shot:

Is there a project property setting that gives hyperlinks and linkButtons
the "rollover" effect with underlining?

Right now, it is somehow defaulted to an automatic underline which I only
want displayed when the user moves the pointer over the link.

Any help would be grealy appreciated.

Ken

Nov 18 '05 #2
If you don't want the hyperlink to be underlined then add:
text-decoration:none to the style attribute for the control. This will
prevent the hyperlink from EVER having an underline though.

Having the underline only appear when the mouse passes over it is a function
of the setting in Windows and the browser, not the web page. If you set
text-decoration to none and have Windows set to only show the underline when
the mouse passes over it, you still won't see the underline.
"Ken Saganowski" <ks*********@hi llier.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Not sure if this is the proper group to post this but its worth a shot:

Is there a project property setting that gives hyperlinks and linkButtons
the "rollover" effect with underlining?

Right now, it is somehow defaulted to an automatic underline which I only
want displayed when the user moves the pointer over the link.

Any help would be grealy appreciated.

Ken

Nov 18 '05 #3
you can use the hover property in your css style sheet for example

a.yourclassname here:hover {
text-decoration:unde rline;}

"Ken Saganowski" <ks*********@hi llier.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Not sure if this is the proper group to post this but its worth a shot:

Is there a project property setting that gives hyperlinks and linkButtons
the "rollover" effect with underlining?

Right now, it is somehow defaulted to an automatic underline which I only
want displayed when the user moves the pointer over the link.

Any help would be grealy appreciated.

Ken

Nov 18 '05 #4

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

Similar topics

4
4868
by: clintonG | last post by:
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/
6
10392
by: domtam | last post by:
First of all, my ASP.NET application has to support browser with Javascript disabled. In the application There is a control that looks like a text hyperlink, but the server-side has to do some-processing when the control is clicked. In other words, it has to generate a postback. I'd like to use a <asp:LinkButton> to do this control because it looks like a text hyperlink and it generates postback for server-side processing. However, I...
7
1828
by: Arpan | last post by:
Both the Hyperlink web server control & the LinkButton web server control display text as links; so what are the differences between the 2 web server controls? Thanks, Arpan
13
10187
by: rn5a | last post by:
In a shopping cart app, suppose a user has placed 5 orders, I want to show him 5 LinkButtons (one for each order) so that when he clicks the first LinkButton, he would be shown the details of his first order. Likewise if he clicks the second LinkButton, he will be shown the details of the second order he had placed. The Text of the LinkButtons will be 1 2 3 etc. So this user would see 1 2 3 4 5 as the LinkButtons. The problem is...
3
2901
by: Ganesh | last post by:
Hi There, It should be easy question, but i don't know how to do. How to transfer to another website from my page. I tried with linkbutton and Hyperlink but i cannot figure out always it transfer to http://localhost:4111/www.yahoo.com
2
2816
by: BobLaughland | last post by:
Hi There, I need a control on my site that is a hyperlink style control, but it must, 1) Have a property that can hold where the hyperlink is pointing to. (e.g. like the NavigateUrl property in the asp:hyperlink control). 2) Also can call my own method when the user clicks on the link (e.g. like the Click event in the asp:linkbutton control).
4
11905
by: Jeff | last post by:
Hi, I have a ASP.NET 2.0 Web Application. Many of the pages use the ASP.NET GridView with paging and sorting. One of the columns of this Gridview is a template column (LinkButton). The data being retrieved and showed in this GridView produce more than one page of data. A given user clicks on the first row hyper link on the Grid on the first page, then the first row hyper link color changes to look as "visited". Then the user navigates to...
4
2381
by: Eric | last post by:
I have a linkbutton on a form that executes a script, it works fine except that it posts back to the calling form first. Is there a way to prevent this? I tried setting the PostBackURL property to the form the script launches but that resulted in some strange behavior. TIA
1
2289
by: k lee | last post by:
I want to create a linkButton to activate my hyperlink which will open a new page in a new window. I would like to know how to code the code of activate the hyperlink which I wish to place it in the 'onclick' event of the linkButton.
0
9879
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10981
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10706
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9477
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7050
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5907
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4113
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.