Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2004, 10:28 PM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just cut and pasted a script that I found in the MSDN library, just to try it out. Its very basic and I asumed it is correct. Here it is:
 <script runat="server">
      void UploadBtn_Click(Object sender, EventArgs e)
      {

         MyFile.PostedFile.SaveAs("e:\\wwwroot\\omrin\\uplo ad");

      }
   </script>
   <body>
      <form action="fileupload.aspx"
            method="post"
            enctype="multipart/form-data"
            runat="server" ID="Form1">

         <h1>ASP.NET File Upload Example</h1>
         Select File To Upload to Server:
         <input id="MyFile"
                type="file"
                runat="server" NAME="MyFile">
         <br><br>
         <input type=submit
                value="Upload!"
                OnServerclick="UploadBtn_Click"
                runat="server" ID="Submit1" NAME="Submit1">

      </form>

Gerhard Wentink
 
Old May 26th, 2004, 11:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

http://p2p.wrox.com/topic.asp?TOPIC_ID=13884

Always:),
Hovik Melkomian.
 
Old May 27th, 2004, 01:45 AM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

AAAAHH How could I have been SO STUPID (Sorry for shouting). Just forgot to name the file! I have QWERTY in reverse written on my forehead, because I banged my head against the keyboard.
Now I will go out and run half a marathon just to empty my head.

Thanks Hovik and all the other guys.

Gerhard Wentink





Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Access Security & Role Based Security robzyc C# 6 April 11th, 2008 02:31 AM
System.Security.SecurityException: Security error coolcatjk Pro VB.NET 2002/2003 4 March 2nd, 2006 06:00 PM
Uploading derek Dreamweaver (all versions) 4 March 8th, 2004 04:28 PM
about uploading shine SQL Server ASP 1 June 5th, 2003 06:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.