468,301 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,301 developers. It's quick & easy.

"Floating Layer" when hovering over a LinkButton

GD
I have a collection of asp:LinkButtons on a web form. Based on some
reporting criteria, I will be "highlighting" some of these LinkButtons.

I'd like the user to be able to mouseover the LinkButton and get a
"floating layer" with some text in this.

How can I achieve this on the server side? The conditions that I will
evaluate in order to determine whether or not to highlight a button
will be evaluated on the server side.

On the server side, I will be able to then add onmouseover and
onmouseout attributes to the control.

Thanks for your help

Nov 19 '05 #1
4 1478
it would be ugly. on the linkbutton mouse over, you would need to postback
the page to let the server decide the mouseover behavior. you could use an
AJAX approach, or better yet move the logic to the client.

if you can determine at orignal render time, just add the mouseover
attributes then.

-- bruce (sqlwork.com)

"GD" <ge**********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
I have a collection of asp:LinkButtons on a web form. Based on some
reporting criteria, I will be "highlighting" some of these LinkButtons.

I'd like the user to be able to mouseover the LinkButton and get a
"floating layer" with some text in this.

How can I achieve this on the server side? The conditions that I will
evaluate in order to determine whether or not to highlight a button
will be evaluated on the server side.

On the server side, I will be able to then add onmouseover and
onmouseout attributes to the control.

Thanks for your help

Nov 19 '05 #2
GD
If I add the attibutes on the server side, they're already on the
client, right?

Nov 19 '05 #3
GD
I can do something like:

lblMyLabel.Attributes["onmouseover"] = some javascript;
lblMyLabel.Attributes["onmouseout"] = some javascript;

Nov 19 '05 #4
CSS/Styles will be your best bet, otherwise just add the .Attributes() to the
control passing in the appropriate clientside events/calls/etc.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"GD" wrote:
I have a collection of asp:LinkButtons on a web form. Based on some
reporting criteria, I will be "highlighting" some of these LinkButtons.

I'd like the user to be able to mouseover the LinkButton and get a
"floating layer" with some text in this.

How can I achieve this on the server side? The conditions that I will
evaluate in order to determine whether or not to highlight a button
will be evaluated on the server side.

On the server side, I will be able to then add onmouseover and
onmouseout attributes to the control.

Thanks for your help

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Hasan O. Zavalsiz | last post: by
18 posts views Thread by woessner | last post: by
4 posts views Thread by John Friedland | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.