Dear Mudassar Ahmed Khan, i have used ur code but it is firing error,
Server Error in '/UserLayer' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'Directory' does not exist in the current context
Source Error:
plus on top of it,
in the code on page Load and Directory and Path these two words show blue blue line beneath them, which show "The name Path does not exist ".
Please help.
Waiting for your reply,
Thanks.
|
Line 21: if (!IsPostBack) Line 22: { Line 23: string[] filePaths = Directory.GetFiles(Server.MapPath("~/Images/")); Line 24: List files = new List(); Line 25: foreach (string filePath in filePaths)
|
Source File: f:\Test Application 2 - Copy\UserLayer\img_disp_during_upload.aspx.cs Line: 23