Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > ASP.NET 4.5 General Discussion
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 4.5 General Discussion For ASP.NET 4.5 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 27th, 2013, 02:54 AM
Registered User
Points: 30, Level: 1
Points: 30, Level: 1 Points: 30, Level: 1 Points: 30, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Location: Mumbai
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default Absolute Path of the folder.

Newbie... I am working on a project in MVC4 with MS SQL Server 2008 R2 where I have a functionality to save a file(.txt/.xls etc.) in a specified folder using Browse button. As of now I have hard-coded the same(viz NOT required). Problem is how can I get the absolute path of that folder so that I will use the same path to open the file for modification? Or is there any way to store the path of Browse button in a string using RegEx or the other way?
Reply With Quote
  #2 (permalink)  
Old December 5th, 2013, 02:37 AM
Authorized User
 
Join Date: Nov 2013
Location: Fort Worth
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yeah i think it does..
__________________
123movies
Reply With Quote
  #3 (permalink)  
Old December 10th, 2013, 02:46 AM
Registered User
Points: 30, Level: 1
Points: 30, Level: 1 Points: 30, Level: 1 Points: 30, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Location: Mumbai
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default

You mean using RegEx?
Reply With Quote
  #4 (permalink)  
Old February 5th, 2014, 10:01 PM
Friend of Wrox
Points: 528, Level: 8
Points: 528, Level: 8 Points: 528, Level: 8 Points: 528, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

Not following what you are wanting to do, typicaly if there is a browse button on a web page it is to locate a file on the client machine to attach it to the form for upload on post.

A RegEx is a class that ecapulsates the functionality of a regural express it does not store anything. It matches strings.
Reply With Quote
  #5 (permalink)  
Old March 9th, 2014, 03:55 PM
Registered User
Points: 30, Level: 1
Points: 30, Level: 1 Points: 30, Level: 1 Points: 30, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Location: Mumbai
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Well morgan, thanks for your post. It is like I need to save a file at a particular location. That is fine, but what I need to do in order to retrieve the path of the same folder?
Reply With Quote
  #6 (permalink)  
Old March 11th, 2014, 11:09 PM
Friend of Wrox
Points: 528, Level: 8
Points: 528, Level: 8 Points: 528, Level: 8 Points: 528, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 136
Thanks: 1
Thanked 10 Times in 10 Posts
Default

If you are wanting client machines to connect to your web server and upload files to it. Them you should define a virtual file system that maps to physical file system, I do not recommend giving clients access to your real file system. The virtual file system can be DB driven where you store data such as a client information and file information such as virtual path (the path the client thinks they are accessing), and the physical path (were on disk the file is actually located). Then if a client then needs to access specific file from your web app then you can refernce it by the information that you have stored.
Reply With Quote
The Following User Says Thank You to mmorgan30 For This Useful Post:
Mohd Amir Ansari (March 12th, 2014)
  #7 (permalink)  
Old March 12th, 2014, 01:47 AM
Registered User
Points: 30, Level: 1
Points: 30, Level: 1 Points: 30, Level: 1 Points: 30, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Location: Mumbai
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Thumbs up Absolute Path of the folder.

I got it. The information you have provided is really useful.

Thanks a lot morgan.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
absolute path vs relative path for substitution group elements ptn77 XSLT 3 June 16th, 2011 10:04 AM
Relative and Absolute Path question Johnger Pro Visual Basic 2005 1 September 8th, 2006 10:45 AM
absolute path required?? atila Crystal Reports 0 April 29th, 2006 06:31 AM
VSProject need absolute path to the references acuze C# 0 April 18th, 2006 06:06 PM
Convert logical path to absolute path zoostar J2EE 1 April 15th, 2005 10:36 AM



All times are GMT -4. The time now is 11:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.