I just wanna find out if there's a way to put my onClick event inside .cs:
<button type="submit" runat="server" id="btnLogin" class="button" onclick="btnLogin_Click();">
protected void btnLogin_Click(object sender, EventArgs e)
// do something
You can do that on any server control and this button is made a server control by defining "
runat=server". The problem is probably in your definition of the event:
<button ... runat="server" ... onServerClick="btnLogin_Click" />
You don't need "
Apart from that can you explain why you don't use the
<asp:Button> here because I don't really see a problem with that...