473,406 Members | 2,549 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,406 software developers and data experts.

Change the MouseOver for a LinkButton

is it possible to set the mouse over for it?

i tried to do an attributes add but this wouldnt work
hypPainSite.Attributes.Add("Onmouseover", "window.status='Pain Site';")


Nov 19 '05 #1
3 2321
Craig:
I typically like giving an explanation along with the answer, but I don't
have one:
hypPainSite.Attributes.Add("onmouseover", "window.status='Pain Site';return
true;")

note the return true
also note that in firefox window.status is turned off by default and must be
turned on by the user in his/her browser...nothing you can really do about
that..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
is it possible to set the mouse over for it?

i tried to do an attributes add but this wouldnt work
hypPainSite.Attributes.Add("Onmouseover", "window.status='Pain Site';")

Nov 19 '05 #2
hmmm i might need an explanation!! still not working with your changes

im using IE6 so window.status is fine

Cheers,
Craig

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:uS**************@TK2MSFTNGP14.phx.gbl...
Craig:
I typically like giving an explanation along with the answer, but I don't
have one:
hypPainSite.Attributes.Add("onmouseover", "window.status='Pain Site';return true;")

note the return true
also note that in firefox window.status is turned off by default and must be turned on by the user in his/her browser...nothing you can really do about
that..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
is it possible to set the mouse over for it?

i tried to do an attributes add but this wouldnt work
hypPainSite.Attributes.Add("Onmouseover", "window.status='Pain Site';")


Nov 19 '05 #3
That's odd, it worked fine for me... you did recompile, right *G* ?

Take a look at: http://aspnet.4guysfromrolla.com/articles/102104-1.aspx
should be helpful..

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
hmmm i might need an explanation!! still not working with your changes

im using IE6 so window.status is fine

Cheers,
Craig

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:uS**************@TK2MSFTNGP14.phx.gbl...
Craig:
I typically like giving an explanation along with the answer, but I don't have one:
hypPainSite.Attributes.Add("onmouseover", "window.status='Pain Site';return
true;")

note the return true
also note that in firefox window.status is turned off by default and must be
turned on by the user in his/her browser...nothing you can really do

about that..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
is it possible to set the mouse over for it?

i tried to do an attributes add but this wouldnt work
hypPainSite.Attributes.Add("Onmouseover", "window.status='Pain Site';")



Nov 19 '05 #4

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

Similar topics

5
by: Fresh Air Rider | last post by:
Hello Could anyone please explain how I can pass more than one arguement/parameter value to a function using <asp:linkbutton> or is this a major shortfall of the language ? Consider the...
3
by: Mel | last post by:
Hi, Is there any way I can force to change button background colour when toggle button is checked? Just like button change its background colour when mouseover in MS Visual Studio.NET. I hope I...
4
by: Sourav Dutta Gupta | last post by:
I want to change the "scr" like src='images/Edit.ICO' to src='images/XYZ.ICO' dynamically based on some condition. My EditCommandColumn: <asp:EditCommandColumn ButtonType="LinkButton"...
2
by: Amy | last post by:
<style> div.helpBtn{ font:bold 73% verdana; color:#995F8D; text-align:left; width:79px; height:24px; margin:0px; padding: 5px 0px 0px 27px; background:...
1
by: Robert T | last post by:
Hi I would like to change the title property(the hint displayed when you move over it) of an elements colour/and or text size. Is this possible Can I change the title property's (hint on...
7
by: moondaddy | last post by:
in asp.net 2.0, i have a link buttonand want to change the forecolor in a mouse over event. how can I do this? -- moondaddy@noemail.noemail
1
by: SunshineInTheRain | last post by:
The following code is dynamic create dropdownmenu which data within pulled from database However, the code work well on IE but not on Firefox. On Firefox, the whole mouseover and mouseout function...
0
by: spacecadet563 | last post by:
I am trying to change and display the image source of an image control (named image2 )on mouseover of cell event on a gridview(Gridview1) with a SQL datasource. The cell contains image name of image...
0
by: HillBilly | last post by:
MasterPages again. Three LinkButtons are being used as styled tabs in the content page that will load a different ListView when a tab is selected: TabA, TabB or TabC. The LinkButtons are declared...
19
by: andersond | last post by:
I want the text to change from gray to bright red when the mouse is moved over the name of our company. Here is the code that doesn't work. What do I need to change to make this work? function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...
0
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...

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.