Click here to Skip to main content
15,921,905 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Am doing a program in website form, not in windows forms application.. is that possible for mouse events is there in visual studio 2010.. kindly pls help me....
I mean,
mouse click
mouse enter
mouse leave
whole mouse evetnts.... pls help me

What I have tried:

Am doing a program in website form, not in windows forms application.. is that possible for mouse events is there in visual studio 2010.. kindly pls help me....
I mean,
mouse click
mouse enter
mouse leave
whole mouse evetnts.... pls help me
Posted
Updated 15-Jul-16 1:29am
Comments
Richard MacCutchan 15-Jul-16 7:16am    
Visual Studio is not a programming language. Please edit your question and explain what language your web pages use. Alternatively use Google to search for suggestions.
Karthik_Mahalingam 18-Jul-16 1:09am    
Hi Abijith,
This is a social forum, you are not supposed to use words like this,
Please remove it before someone reports you as a spam user and block your account.
I am tamilian, i knew litle bit malayalam, i could understand that it has some abuse content.
have some patience and ask the user politely, you will get what you need.

Thanks
karthik

No - not in C#. For a website, you need to handle those event at the client, not the server, and C# is always executed on the server. For mouse events, you want to handle them in Javascript: Javascript - Mouse Events[^] should help.
 
Share this answer
 
Comments
Abijith Ajayan 15-Jul-16 7:38am    
Thanks for the solution.....
OriginalGriff 15-Jul-16 7:46am    
You're welcome!
There is no relation between "mouse events" and "visual studio 2010"
its purely a javascript events for an HTML element which will run in browser, you dont need to have visual studio for that, just write some piece of html codes in a notepad, save it as .html extension and open it in any browser, your events and HTML related stuffs will work perfect.

Quote:
is that possible for mouse events is there in visual studio 2010

you will have to write it manually, might be intellisense help you a little.

for more information on mouse events refer :
HTML onmousedown Event Attribute[^]
HTML onmousemove Event Attribute[^]
HTML onmouseout Event Attribute[^]
HTML onmouseover Event Attribute[^]
HTML onmouseup Event Attribute[^]
 
Share this answer
 
Comments
Abijith Ajayan 15-Jul-16 8:05am    
Thank you....
Karthik_Mahalingam 15-Jul-16 8:13am    
welcome :)
Mouse Events | jQuery API Documentation[^]

All this a mouse events which are in jquery
button1.Attributes.Add("onmouseover","SomeJavaScriptFunction();");

and on SomeJavaScriptFunction() you can call ajax
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900