By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,974 Members | 1,913 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,974 IT Pros & Developers. It's quick & easy.

"Floating Layer" when hovering over a LinkButton

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
GD
If I add the attibutes on the server side, they're already on the
client, right?

Nov 19 '05 #3

P: n/a
GD
I can do something like:

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

Nov 19 '05 #4

P: n/a
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.