it's because that is the way that .net works. Since this macro is based on a user control that holds a .net form it needs to have the asp.net serverside form wrapped around it. You can read more about asp.net webforms here: http://msdn.microsoft.com/en-us/library/ms973868.aspx
wierd "Error in '/' Application" using Doc Cart
Hey all,
I developed a books selling website - www.hamadaf-y.co.il and I'm trying to use the Doc Cart package following this tutorial- http://blog.darren-ferguson.com/2011/5/9/a-simple-umbraco-cart-with-doc-cart,-contour-and-bill4u but every time I'm trying to add the AddToCart btn I'm getting this annoying msg:
Control 'ContentPlaceHolderDefault_content_inner_content_AddToCart_3_ctl00' of type 'ImageButton' must be placed inside a form tag with runat=server.
any Ideas how i solve this?
Hi AvihayBit
Do you have a server side form sorrounding your content in your master template?
if not you should probably place one between <body> and </body> like...
<body>
<form runat="server">
<!-- Rest of your content goes here -->
</form>
</body>
Hope this helps.
/Jan
Hi jan
it worked! thanks a lot!
Why this form tag is needed only when I put this macro? all the other macros didn't make anny error...
what is the purpose of this <form runat="server">? didn't met it till now :)
Hi AvihayBit
I'm very glad to hear that :)
it's because that is the way that .net works. Since this macro is based on a user control that holds a .net form it needs to have the asp.net serverside form wrapped around it. You can read more about asp.net webforms here: http://msdn.microsoft.com/en-us/library/ms973868.aspx
Have a happy new year :)
/Jan
is working on a reply...