Click here to Skip to main content
15,904,926 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends
in my application, i written click event on linkbutton.

but my requirement is when i place mouse on that linkbutton that click event should be fired and display some alert box.

Please give me segessions
Thanks in Advance.
Posted
Comments
choudhary.sumit 11-Dec-12 6:09am    
so why wrote the code on click_event, if u want output on mousehover??
Member 9409254 11-Dec-12 6:15am    
i already devoloped click event for every control
but now i have to use the same code when mouse over on linkbutton
AnkitGoel.com 11-Dec-12 6:11am    
what do u want at what event please recheck with urself.

Please have a look on below:


$(document).ready(function () {
$('#btntest').mouseover(function () {
alert('pankaj rambadia is here');
});

});








or

http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_event_mouseover_mouseout[^]
 
Share this answer
 
Comments
Member 9409254 11-Dec-12 6:24am    
Thank u mr.pankaj rambadia
my requirement :
i written click event like
protected void LinkButton1_Click(object sender, EventArgs e)
{
string s = "Welcome "+Session["name"].ToString();
ClientScript.RegisterStartupScript(GetType(),"a","alert('"+s+")",true);
}
Now the requirement is : when i place mouse on that linkbutton the same click event have to fires and display alert box.
Give any sugession.
Thanking you
Member 9409254 11-Dec-12 6:28am    
I executes your code but there is no alert was displaying
I think you want tooltip. When you mouse over on the control then you want to show something.. Please, follow those example:

XML
<input type="text" size=25 title="This is from Bangladesh">
<a href="http://www.facebook.com" title="Facebook">Dynamic Drive</a>
<img src="monster" alt="Big scary monster">



Thank you.
Rashed::Bangladesh
 
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