Click here to Skip to main content
15,918,108 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
In my project I created a folder(by Rclick add ->new folder) and added some items(files are *.pdf :~ )
in it ,but How can I access that folder items in my form code behind ??
I have only this options in form1.cs
winformapp.|properties
           |Form1
           |program
Posted
Updated 4-Mar-10 1:16am
v6

You should have asked better before.

What kind of files have you added?
 
Share this answer
 
Amazing, 3 edit only to understand what you were asking for.

Anyway this is not really the way to go.
Its completely useless to add them into a project folder, because you cant handle them that way.
Now It depends on what you have to do with those pdf. If you have to just binary work on them you can use a stream etc, if you need to open them as pdf you need a 3rd party library because C# and standard .NET does not provide that functionality.
 
Share this answer
 
use this code

src=../FolderName/filename.pdf

or Server.mapPath("FolderName//")+filenam.pdf
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900