Click here to Skip to main content
15,921,212 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Code for Progress bar Webapplication showing 0-100% completion Pin
harithajagini18-Jul-08 1:59
harithajagini18-Jul-08 1:59 
GeneralRe: Code for Progress bar Webapplication showing 0-100% completion Pin
N a v a n e e t h18-Jul-08 2:09
N a v a n e e t h18-Jul-08 2:09 
Question.NET Profiler Pin
Brendan Vogt18-Jul-08 1:10
Brendan Vogt18-Jul-08 1:10 
AnswerRe: .NET Profiler Pin
N a v a n e e t h18-Jul-08 1:28
N a v a n e e t h18-Jul-08 1:28 
AnswerRe: .NET Profiler Pin
Ilya Verbitskiy18-Jul-08 2:33
Ilya Verbitskiy18-Jul-08 2:33 
AnswerRe: .NET Profiler Pin
John Ad18-Jul-08 3:48
John Ad18-Jul-08 3:48 
Questionproblem related to picture upload Pin
gaurav mangal18-Jul-08 0:57
gaurav mangal18-Jul-08 0:57 
AnswerRe: problem related to picture upload Pin
N a v a n e e t h18-Jul-08 1:27
N a v a n e e t h18-Jul-08 1:27 
gaurav mangal wrote:
came to know that if i select 1 image only then the value of uploadedFiles 2


Even if you are selecting one image, Request.Files will return the total upload control count. So you need to check the content length before you save the file.

for (int i = 0; i < uploadedFiles.Count; i++)
{
    HttpPostedFile userPostedFile = uploadedFiles[i];
    if(userPostedFile.ContentLength != 0){
        userPostedFile.SaveAs(filepath + "\\" + System.IO.Path.GetFileName(userPostedFile.FileName));
    }
} 


gaurav mangal wrote:
string filepath = "C:\\Uploads";


Use Server.MapPath always. ASP.NET won't have access to other directories in the system.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: problem related to picture upload Pin
gaurav mangal18-Jul-08 19:03
gaurav mangal18-Jul-08 19:03 
AnswerRe: problem related to picture upload Pin
metallica_rock1018-Jul-08 1:41
metallica_rock1018-Jul-08 1:41 
GeneralRe: problem related to picture upload Pin
N a v a n e e t h18-Jul-08 1:49
N a v a n e e t h18-Jul-08 1:49 
AnswerRe: problem related to picture upload Pin
pradeep kumarappagari20-Jul-08 22:26
pradeep kumarappagari20-Jul-08 22:26 
QuestionAdd Row to Gridview Pin
IamAmit18-Jul-08 0:25
IamAmit18-Jul-08 0:25 
AnswerRe: Add Row to Gridview Pin
N a v a n e e t h18-Jul-08 1:08
N a v a n e e t h18-Jul-08 1:08 
GeneralRe: Add Row to Gridview Pin
IamAmit18-Jul-08 1:42
IamAmit18-Jul-08 1:42 
QuestionBinding into grid Pin
Member 387988117-Jul-08 23:53
Member 387988117-Jul-08 23:53 
AnswerRe: Binding into grid Pin
varshavmane18-Jul-08 0:16
varshavmane18-Jul-08 0:16 
GeneralRe: Binding into grid Pin
Member 387988118-Jul-08 0:19
Member 387988118-Jul-08 0:19 
GeneralRe: Binding into grid Pin
varshavmane18-Jul-08 1:45
varshavmane18-Jul-08 1:45 
AnswerRe: Binding into grid Pin
Sherin Iranimose18-Jul-08 0:26
Sherin Iranimose18-Jul-08 0:26 
GeneralRe: Binding into grid Pin
Member 387988118-Jul-08 0:42
Member 387988118-Jul-08 0:42 
AnswerRe: Binding into grid Pin
N a v a n e e t h18-Jul-08 1:07
N a v a n e e t h18-Jul-08 1:07 
Questionhow to refresh access 2003 database Pin
sathyan_829417-Jul-08 23:47
sathyan_829417-Jul-08 23:47 
AnswerRe: how to refresh access 2003 database Pin
Ashfield18-Jul-08 1:23
Ashfield18-Jul-08 1:23 
QuestionValidation control Pin
Tauseef A17-Jul-08 23:45
Tauseef A17-Jul-08 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.