Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
PRASHANT MISHRA  
#1 Posted : Wednesday, December 30, 2009 6:19:01 PM(UTC)
PRASHANT MISHRA

Rank: Newbie

Groups: Member
Joined: 12/30/2009(UTC)
Posts: 1

why we have wrote 'Path' and 'File' in this code?
and how and where will we define these i.e. 'File' and 'Path'.

string fileName = GetSafeFileName(Path.GetFileName(e.File.FileName));
e.File.SaveAs(Server.MapPath(galleryPath + fileName));



this code is giving error in 'File'
please tell me the error.

Edited by user Monday, January 4, 2010 5:16:57 PM(UTC)  | Reason: Not specified

File Attachment(s):
to check.txt (2kb) downloaded 4 time(s).
to check.txt (2kb) downloaded 0 time(s).
Dmitry  
#2 Posted : Saturday, January 2, 2010 4:36:01 AM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

It is FileUploaded event used to handle uploaded data server-side. This event is fired the same amount of times as a number of files uploaded from the client receiving the data related to a particular file. The detailed information about this event you can find in the Inserting Image Uploader ASP.NET Control into ASP.NET Page topic.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.