Quote:
Originally Posted by programmerboy
What if I have two different portions of a page and both submit themselves to a different page, then one form tag won't work. Don't I need two form tags then?
It's possible but it makes things confusing.
There is a way to have elements on one page submit to another... but really why would you need to? If you must do this then your design is probably unnecessarily complicated.
Quote:
Originally Posted by programmerboy
Also, whats the reason that we shouldn't have form tag(s) in user controls? Any security or performance risk?
It has nothing to do with security, nor performance. The reason you should not have a form tag in a user control is because user controls are supposed to be used (as a control) in a page. As I stated earlier, the page that the user control is added to will have the form tag, and (as you've discovered) you cannot have a form tag within a form tag.
Please note that User Controls have a page life cycle that is the same as an ASPX page. So anything submitted to the User Control will seem like it's "submitting to it's own page"....in other words, you implement a User Control the same way that you would implement an ASPX page, but the User Control does not have a form tag. That belongs to the parent page of the User Control.