Welcome to Dream.In.Code
Become an Expert!

Join 150,368 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,755 people online right now. Registration is fast and FREE... Join Now!




FileRenaming

 
Reply to this topicStart new topic

FileRenaming

vsp2all
3 Sep, 2008 - 11:24 PM
Post #1

New D.I.C Head
*

Joined: 21 Jun, 2008
Posts: 1

Iam developing a small application that will automatically creates a folder with the login name and there is a facility to upload files like pdf's into that folder and iam giving ids to each file and storing that id into database.
Iam trying to display all available files of a paricular folder on gridview and providing a custom control to view the corresponding pdf on pdf viewer control .
Now iwant to know how to retrive the selected file path and assign to the control to view.
Is there any solution to do this pls give me!
Thanks in advance.[code]
User is offlineProfile CardPM
+Quote Post

dineeshd
RE: FileRenaming
4 Sep, 2008 - 02:11 AM
Post #2

D.I.C Addict
Group Icon

Joined: 30 Jun, 2008
Posts: 579



Thanked: 16 times
Dream Kudos: 575
My Contributions
Please post the code you have so far, that we can help you further...

User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: FileRenaming
4 Sep, 2008 - 07:34 AM
Post #3

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,483



Thanked: 161 times
Dream Kudos: 9075
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
You could use Server.MapPath() and pass it the name of your file.

vb

Dim path As String = Server.MapPath("~/YourFile.pdf")

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 02:10PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month