Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of AliSyed
AliSyed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

Great.  How do I then use it in my program?
And does it matter where i place it?  Should it go inside here?

<configuration>
</configuration>
Thanks.  I got it working as you described. Cheers.