net application and I want to create me a own Button with css and html and use the onclick event for execute c# code. But I get the error:
Runtimeerror in Microsoft JScript: "BtnAdd_Click" is undefine
Here is my Code:
ASPX file:
<div id="GuestListViewControls">
<table>
<td><a href="#" class="GuestButtons" runat="server" onclick="BtnAdd_Click">Hinzufügen</a></td>
</table>
</div>
My C#:
protected void BtnAdd_Click(object sender, EventArgs e)
{
Response.Write("Add");
}
Can I use this Button with C# Code in a ASP.NET Application? :/
<tr>above<td>and close it just before</table>.