forum

Home / DeveloperSection / Forums / how to call a c# webmethod on mouseover of linkbutton in asp.net?

how to call a c# webmethod on mouseover of linkbutton in asp.net?

marcel ethan 2387 02-Dec-2014

Is it possible to call a c# webmethod on mouseover on Linkbutton ? what i want is to call a webmethod in which i am binding a repeater control with datatable. How? in aspx: 

<asp:LinkButton Text='<%#Eval("SNA")%>' ID="lnkpro1" runat="server" 
CssClass="linkbutton" servicemethod="GetRecords"
OnClick="btn_Click1" CommandArgument='<%# Eval("Sets") %>'></asp:LinkButton>

in aspx.cs: 

[System.Web.Script.Services.ScriptMethod()]
[System.Web.Services.WebMethod]
public void GetRecords(object sender, EventArgs e)
{
 
}

I am not getting the point that is how is it possible to call a webmethod on linkbutton mouseover. I have used a webmethod in textbox autocomplete extender but it has a propperty of calling a webmethod but is it so in this case also? Thank you.


Updated on 03-Dec-2014

Can you answer this question?


Answer

1 Answers

Liked By