I'm new to ASP.NET and I am so hating it. :| Is it true that you can't use HTML forms any more in an ASP.NET page? All I want is a simple search box that resubmits to the page by way of a button (which calls some javascript).
First off, I tried to include an HTML form but nested forms aren't allowed (i.e. with the global "runat=server" thing). So I give the runat server form a name and some controls, etc. but when the code is generated it's always changed to "_C10" or some such stuff. So then I just made the button non-submit and called some js onClick, which worked great. Except when you press RETURN it goes to the global form, so it's useless.
So what I'm asking is, is there any way to implement this simple thing in ASP.NET without using ASP.NET controls (when I try, using WebMatrix, the editing interface consistently screws up the page format and rewrites my code incorrectly so it fails). It must be an HTML form (or similar). And I have many screens to convert that use multiple forms in a page - this seems impossible now.
Any help would be appreciated as I have come to a total stop.
First off, I tried to include an HTML form but nested forms aren't allowed (i.e. with the global "runat=server" thing). So I give the runat server form a name and some controls, etc. but when the code is generated it's always changed to "_C10" or some such stuff. So then I just made the button non-submit and called some js onClick, which worked great. Except when you press RETURN it goes to the global form, so it's useless.
So what I'm asking is, is there any way to implement this simple thing in ASP.NET without using ASP.NET controls (when I try, using WebMatrix, the editing interface consistently screws up the page format and rewrites my code incorrectly so it fails). It must be an HTML form (or similar). And I have many screens to convert that use multiple forms in a page - this seems impossible now.
Any help would be appreciated as I have come to a total stop.