I want a file uploader,that doesnt cause post back in asp.net 2.0.
With some googleing i found that if i set traget of the form to an iframe on the same page,i can avoid post back.But when i try this the page is getting opened in new window.(ie7 is the browser i am using).
I understand that post back will happen anyway,but can we avoid the page getting opened in new window some how?
Please find my code below:
<form id="form1" action="#" method="post" enctype="multipart/form-data" runat="server" target="myframe">
<input type="file" id="myfile" accept="image" runat="server"/>
<input type="submit" value="upload" runat="server" />
</form>
<iframe id="myframe">
</iframe>