Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with onmouseover event!!!

Status
Not open for further replies.

passs

Programmer
Dec 29, 2003
170
RU
Hello,

Please can someone help me, i use ASP.NET and can not create onmouseover event. I can not use JavaScript due to i send data to server in this event and have to calculate it on serverside, then send back to user.
In ASP.NET there is no this event by default. How can i solve this problem?

Will be very thankful for the answer!

Best regards!
Alexander
 
It doesn't matter that you have data to process on the server, if you want an onmouseover() event, it can be on the client side in JavaScript or VBScript. If you are presenting a user interface, then you can use a client side script.

That being said, I just Googled onmouseover ASP.net and found multiple examples on how to do it within .net.

Is one example.

Most code went something like this, though:

imgWhatever.Attributes.Add("onMouseOver","this.src='/images/whatever2.gif'");

Hope that helps.
 
Hey!
No look i have some data in DB and some image for example. I want to creat onmouseover event which will make some <asp:panel runat=sever id....>
visible. Why do i use <asp:panel> instead for example some html layer (<div....>), due to i calculate some data from that DB and write in to this <asp:pAnel> on server side.
May be i'm wrong but i think i can not do it using client siede code. Or i can?:)

I'll look through that link you gave me.

Thanks for the answer anyway and my congratulations with comming New Years Day!

Best regards
 
forum855 may have better contributions to your problem also. Thats the ASP.NET forum.

_____________________________________________________________________
onpnt2.gif

Hakuna matata!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top