-2

Hi friends.,

I need one help from you all. Actually i am working asp.Net 4.0, i need to specify path in different folder in my project.so, i think if i place server.mappath in web.config is very useful for me how can i place it.

tell me any sample or code
Thank you

Edited by mani-hellboy: n/a

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by mani-hellboy
0

You can't put code in the web.config file, it is just an XML file. However, I believe you can have your path as follows (and please, someone correct me if I'm wrong):

<node attribute="~/folder/file.ext" />

The tilde I believe works the same way as having server.mappath, but again, I'm not 100% positive on this, but at least it's something you can look into.

-1

You can't put code in the web.config file, it is just an XML file. However, I believe you can have your path as follows (and please, someone correct me if I'm wrong):

<node attribute="~/folder/file.ext" />

The tilde I believe works the same way as having server.mappath, but again, I'm not 100% positive on this, but at least it's something you can look into.

thank you

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.