onServerClick when clicking on an html span element

0

I have a tag and I would be interested to click on it to run an event on the server (onServerClick)

I have the following:

<span style ="text-decoration:underline; cursor: pointer;" id="link1" runat="server" onServerClick="linkModificar_Click">Modificar</span>

But it does not jump to the event method on the server. On the other hand if I put an element if it does.

On the server side to pick up the event I've declared it like this:

protected void linkModificar_Click(object sender, EventArgs e)
{
  // Codigo 
}
    
asked by Popularfan 31.08.2018 в 15:16
source

0 answers