Illusion Posted July 3, 2008 Posted July 3, 2008 Hi, I'm having a little problem with the asp.net forms. I have a master page and a default page created from new, I've put; <form id="form1" method="post" runat=server enctype ="multipart/form-data" > <input id="uploadMyFile" type=file runat =server /> <asp:button id="cmdSend" runat="server" Text="Send" onclick="cmdSend_Click"/> </form> on the Default page, but when I run it I get ' You can only have one form tag ', which I can understand, but how do I go about making it so I can upload files using the form on the Default.aspx? .. or is there another way. Thanks Quote
Administrators PlausiblyDamp Posted July 3, 2008 Administrators Posted July 3, 2008 What happensCould you not remove the extra form declaration and use the FileUpload control instead? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Illusion Posted July 6, 2008 Author Posted July 6, 2008 Hi, ahhhh .. I didn't know about that control.. oops *is still new at asp.net 0:)* .. thanks for that :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.