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
Thirunavukkarsu j
NA
196
89.7k
Get directory path file name from Client server C# and Asp.n
Jan 3 2015 3:08 AM
Dear sir,
now i am using this code server system available D:\pdfdoc folder working fine, but
i need get file name and folder path from Client system.
i saved client system D:\pdfdoc
please help me
DirectoryInfo d = new DirectoryInfo(@"D:\Pdfdoc");
FileInfo[] Files = d.GetFiles("*.pdf");
FileInfo[] subFiles = d.GetFiles("*.pdf", SearchOption.TopDirectoryOnly);
foreach (FileInfo file in Files)
{
string str = file.Name;
substr = str.Substring(0, 6);
string empid = lbl.Text + ".pdf";
if (str == empid)
{
string PDFFile = @"D:\Pdfdoc\" + substr + ".pdf";
lblfile.Text = "";
lblfile.Text = "Available";
lblfile.ForeColor = System.Drawing.Color.Green;
lblfilename.Text = PDFFile;
}
}
Reply
Answers (
1
)
How To Disable Textboxes in EditItemTamplate of Gridview
multiple files upload at a time asp net 4.0 c#