Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. asp.net: monitor user click
  2. <asp:HyperLink ID="HyperLink1" onmouseover="btnSubmit_Click" runat="server">www.google.com</asp:HyperLink>
  3. <asp:Button
  4.     id="btnSubmit"
  5.     Text="Submit"
  6.     Runat="server"  />
  7. protected void btnSubmit_Click(object sender, EventArgs e)
  8.     {
  9.         btnSubmit.Text = "clicked a link!!!";
  10.     }
  11.        
  12. <asp:LinkButton ID="lb_Link" OnClick="btnSubmit_Click" Text="www.google.com" runat="server" />
  13.        
  14. HyperLink1.Attributes.Add("onmouseover","yourClientFunction");//this can be done in page load