• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

<button> postback

Hello,
Can I use html <button> to generate postback? Similar to  asp control.
I would like to get the event in a method in C# code behind.
0
johnkainn
Asked:
johnkainn
1 Solution
 
informaniacCommented:
Not sure why you want it instead of an asp:Button.

<button id="bt" runat="server" width="100px" onserverclick="click" value="Button CLick">Button Click</button>

Open in new window

0
 
johnkainnAuthor Commented:
I tried to put a css from a <button> on an asp:button but it did not come out correct, so I instead created an image of the button and I use it with an asp.imagebutton and now it works.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now