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
yogita dhingra
NA
31
0
how to read the upload file
Oct 7 2009 8:16 AM
string docName = fileupNewsLetter.FileName;
string ext = null;
string name = string.Empty;
int totlen = docName.Length;
int dot = docName.LastIndexOf('.');
int end = dot + 1;
int ending = totlen - end;
ext = docName.Substring(end, ending);
name = "Newletter" + IsRecordExist + "." + ext;
if (ext == "pdf")
{
fileupNewsLetter.PostedFile.SaveAs("C:\\Documents and Settings\\yogita\\Desktop\\Csinvestment\\Admin\\FreeNewsLetter\\" + name + "");
lblMsg.Text = "File Save successfully";
}
else
{
lblMsg.Text = "Not a Valid File Format only PDF file is allowed";
}
i have upload the file now i want to read the file so can any one tell me how to read the file.
i have taken one grid in that image button is thr so while clicking upon the image it will open tht file.
Reply
Answers (
1
)
Load XML from URL giving error (The remote server returned an error: (401) Unauthorized.)
Automatic click over a button in a web page