TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark Tabor
550
2k
464.2k
I am uploading the file it works locally check below for
Jun 7 2016 6:22 AM
my filepath is as below
Dim FilePath As String = ConfigurationManager.AppSettings("FilePath").ToString
and FilePath is set in web.config
<add key="FilePath" value="~/Uploads/" />
It works fine locally but when i try to host the application I am using
Dim FilesPath As String = HttpContext.Current.Server.MapPath("~/Uploads")
I have created a directory with name Uploads it Uploaded files with the path
C:\Inetpub\vhosts\planrbme.com.pk\httpdocs\Uploads\Doc2.pdf
I am showing files into the gridview and and i made file name as hyperlink and on click it should open the files , locally all works fine but on live it is saving the file with path C:\Inetpub\vhosts\planrbme.com.pk\httpdocs\Uploads\Doc2.pdf but on clicking it is not opening the file please assists me
Reply
Answers (
2
)
How to create PDF in ASP.Net using Adobe PDF Library SDK?
How to edit multiple tables in MVC using ViewModel patter