Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 August 16th, 2011, 02:44 PM
Registered User
 
Join Date: Apr 2011
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fileupload

Can I select a default path for the upload control in ASP.NET, not on the save path but a default path when I click the upload control???


And is there any way to upload .bak(backup) file by fileupload??
 
Old August 16th, 2011, 03:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

>> Can I select a default path for the upload control in ASP.NET

Probably not, as this is a client's browser setting. You *could* do it with VB Script (by setting a registry key) at the client but this requires insane low security settings and as such will work in a very controlled environment only.

>> And is there any way to upload .bak(backup) file by fileupload??

Yes. You can upload any file you want with the asp:FileUpload control; it's doesn't restrict you in the files you can upload.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
fileupload - access DrFunk BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 June 24th, 2010 04:47 AM
Problem with FileUpload SouthendSupporter BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 May 9th, 2010 07:45 AM
FileUpload msomar C# 2008 aka C# 3.0 5 April 12th, 2010 04:44 PM
Fileupload in Ajax bobwith5 ASP.NET 2.0 Professional 3 October 18th, 2008 09:59 AM





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