I'm developing a page that will have an upload control on it. The control is quite complex and doesn't postback whilst uploading files. It works perfectly fine when not in a form tag with runat="server"
as it has it's own form with a post action that will post to a ashx file.
The problem is that I now want to put this control within a page amongst other asp.net controls that work via runat="server"
. This means that all the controls around it will need to be within a form tag with runat="server"
.
Here is the form that the control works within :
<form action="MyFileTransfer.ashx" method="post" enctype="multipart/form-data">
// buttons etc.
</form>
Althought if I put in in my master page with <form runat="server"></form>
wrapping it's entire content, I get issues.
What is the best way to approach this and what do you recommend?