can I delete <form id="form1" runat="server"> and </form>


Our website is written by using simple html code, one of the page has some virtual shopping cart code with <form> ....</form>, (for example here: ), if I have 10 products, I will have 10 of <from> ...</form> in this page, that is ok.

Now, I am trying to redesign the website using asp.net2.0, I notice all the asp page will automatically create a <form id="form1" runat="server"> ...</form>, such as:

<html xmlns="" >
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">

The virtual cart company tells me that I can't put other vitual cart code in between, because the virtual cart code also has <form> </form> and will cause conflict.

My question is: Is it possible I delete the <form id="form1" runat="server"> and </form> , so I can add virtual cart code?  Is it possible casuing any problem if I delete them?

Thank you very much.


5/30/2008 7:00:22 PM 93655 articles. 6 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 39
Get it on Google Play
Get it on Apple App Store

If you delete it, your aspx template has to use regular HTML tags. You can't use any NET server controls. And, you can't put runat="server" to any your html tags. Also, you have to use ACTION="" in your regular forms.

Anyway, it means you can't implement NET web features.

"Object reference not set to an instance of an object"
5/30/2008 7:37:07 PM