MouseOver in Webapplicaitons

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

I have searched for a while in MSDN for this subject but all I ended up was
mouse-events in Windows applications, isn't there an easy way for
web-applications.

Thnx in advance,

Best Regards,
 
Unless I'm way off here, I think you can use the same events and event
handlers and .NET will understand then for Web Apps too. BTW, by web
apps, I'm assuming you mean ASP.NET since you posted in a C# group.

I know there are some classes that are specific to Windows Forms, but I
don't think the mouseover event is one of them.

Try writing the code using "normal" methods and see if that works for
you.
 
Hello Tanju,

ASP.net and JavaScript could handle MouseOver event.
I don't quite understand what the problem is. Could you descibe it more wide?

T> I have searched for a while in MSDN for this subject but all I ended
T> up was mouse-events in Windows applications, isn't there an easy way
T> for web-applications.
T>
T> Thnx in advance,
T>
T> Best Regards,
T>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Hi,

The controls provided by asp.net are server side based, hence they provide
no handling for clients events like those from the mouse
You can easily add it using Javascript, you can use the Attributes
collection to add client behavior:

aImageButton.Attributes.Add("onmouseover","js_function_forhover()");

this will send to the browser something like:

<input type="button" id="aImageButton" onmouseover="js_function_forhover()"
 
Hello Michael ,

I meant that *by means* of asp.net you can handle your js

MN> Hello Tanju,
MN>
MN> ASP.net and JavaScript could handle MouseOver event. I don't quite
MN> understand what the problem is. Could you descibe it more wide?
MN>
T>> I have searched for a while in MSDN for this subject but all I ended
T>> up was mouse-events in Windows applications, isn't there an easy way
T>> for web-applications.
T>>
T>> Thnx in advance,
T>>
T>> Best Regards,

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Thank you all for helping me and so sorry for replying too late,

Actually I'm coming from Windows desktop enviroment and ı have used pascal
language (such as Borland delphi) effectually so far. To create a event
handler in delphi is very easy task, just double-clicking at
"object-inspector" leads you to the source code view and you can do whatever
you want, having such experience makes me think that there should be an
easy-way similar in MS Studio like in Delphi. But probably the all these
issues are contradicting with the nature of web-programing (server-client
side), it seems that there is no better way than writing script for handling
events in web -applications.


Best Regards,
 
Hi,

Tanju said:
Thank you all for helping me and so sorry for replying too late,

Actually I'm coming from Windows desktop enviroment and i have used pascal
language (such as Borland delphi) effectually so far. To create a event
handler in delphi is very easy task, just double-clicking at
"object-inspector" leads you to the source code view and you can do
whatever
you want, having such experience makes me think that there should be an
easy-way similar in MS Studio like in Delphi. But probably the all these
issues are contradicting with the nature of web-programing (server-client
side), it seems that there is no better way than writing script for
handling
events in web -applications.

You are correct, in .NET is as easy IF you are working in windows
environment. Even if you are working in a web environment it's as simple IF
you want to handle the server events (onclick, selectedindexchanged, etc )
otherwise you have to do it in javascript.
 
ok we have clarified this issue,

As we know that script event-handlings are on client-side and .NET
event-handling mechanism is on server-side, which one most effacious. The
other way, which one is prefered by the developers?

Thnx,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top