Results 1 to 1 of 1

Thread: upload files..tricky

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    upload files..tricky

    Hi there.

    in asp.net (makes it alot easier) I know how to upload files.
    Since my page is going to be one page where all the menus will be displayed and used from, for each menu the user clicks on - its controls will be displayed/hidden on the webpage.

    The thing is, when the user clicks on the "upload a file" menu button, it should show the asp upload feature(type = file <tag>) . I have made this work by placing the code in the upload a file menu button and it does a response.write() and writes out the html tags for showing the file type (input type = file id=blah.....)

    I have told this that onserverclick to run a method which uploads the file from the client machine to the server. However it does not seem to work!

    If I however place this same html tag in html view on the asp.net webpage, it works! Although the bad thing about it is that it will always be displayed (not what i would like... unless the user clicks the upload a file button)

    Why is this? is it because when you are doing a response.write() it writes /re-writes the html page and doesnt know of any C# methods existing?

    How can i solve this problem? I do not wish to have to make another webpage for this upload to work... if worse comes to worse then yeh sure ill make a page but prefer it all to be on the same page.

    any ideas?
    Last edited by Techno; Jun 26th, 2005 at 09:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width