Users Pricing

forum

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

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

marcel ethan 2930 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.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md