I'm trying to create a generic <input type="button"> button in ASP.Net using an ASP.Net control and I'm unfortunately stuck using ASP.Net 1.1 right now. I know you can use the UseSubmitBehavior="False" attribute in later versions of ASP.Net but I can't seem to find a way to do this in ASP.Net 1.1. Is there a way to do this or will I need to just create the HTML version of the control and set it to runat="server"?
Asked
Active
Viewed 1,175 times
1
-
Looks like my original version of the post left out an important element... the part... I can't seem to find a way to create a button that is not a submit button – Shawn Steward Oct 23 '09 at 20:56
2 Answers
2

Chris Ballance
- 33,810
- 26
- 104
- 151
-
Thanks. I'm sure my original post looked extremely basic, I edited it to make the main portion show up now. I'm looking for a way to make an with an asp:Button control, not a submit button. – Shawn Steward Oct 23 '09 at 21:07
0
Well it looks like you just can't do this with an asp.net control. The only way I was able to make this work was with an <input type="button" runat="server">
control.

Shawn Steward
- 6,773
- 3
- 24
- 45