PC Review


Reply
Thread Tools Rate Thread

Class HyperLink and mouseover

 
 
Peter Eriksson
Guest
Posts: n/a
 
      23rd Mar 2005
I am making a link with the HyperLink-class like this:

HyperLink link = new HyperLink();
link.NavigateUrl = "http://www.page.com";
link.Text = "Some text";
link.ImageUrl="/images/linkimage.gif";

What I would like to do is to show another image for the link on the
mouseover event.

Is this possible?

/Peter


 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      23rd Mar 2005
Peter,

Probably not. If anything, you would have to create a new class that
derives from HyperLink, and then have that class inject the javascript code
for the rollover effect.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Peter Eriksson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am making a link with the HyperLink-class like this:
>
> HyperLink link = new HyperLink();
> link.NavigateUrl = "http://www.page.com";
> link.Text = "Some text";
> link.ImageUrl="/images/linkimage.gif";
>
> What I would like to do is to show another image for the link on the
> mouseover event.
>
> Is this possible?
>
> /Peter
>
>



 
Reply With Quote
 
Denny Britz
Guest
Posts: n/a
 
      23rd Mar 2005
Hi,

are you developing a windows or a WebForms (ASP.NET) application?

> What I would like to do is to show another image for the link on the
> mouseover event.


in case of ASP.NET:
ASP.NET is a server-side technology, in other words, you can't execute
code on client-side events (like mouseover).

You have to use JavaScript to do that.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink mouseover Mat Microsoft ASP .NET 4 20th Dec 2006 09:21 AM
Mouseover on a hyperlink Peter Morris Microsoft ASP .NET 1 15th Aug 2006 12:37 PM
Class HyperLink and mouseover Peter Eriksson Microsoft ASP .NET 1 23rd Mar 2005 04:25 PM
Need help with hyperlink mouseover wazoo Microsoft VB .NET 3 24th Oct 2003 09:59 PM
Need help with hyperlink mouseover wazoo Microsoft ASP .NET 2 24th Oct 2003 07:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:17 AM.