We help IT Professionals succeed at work.

Where in Web.Config do I define a file save path using MVC2?

342 Views
Last Modified: 2012-05-10
I need to use the Web.Config to save the path I will use to save files uploaded by the user. Where is the right place to define this?  I mean what tags do I use?

Then how do I reference it in the code?

Thanks,
newbieweb
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
curiouswebsterSoftware Engineer

Author

Commented:
Great.  How do I then use it in my program?
curiouswebsterSoftware Engineer

Author

Commented:
And does it matter where i place it?  Should it go inside here?

<configuration>
</configuration>
curiouswebsterSoftware Engineer

Author

Commented:
Thanks.  I got it working as you described. Cheers.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.