Click here to Skip to main content
16,005,038 members
Home / Discussions / ASP.NET
   

ASP.NET

 
JokeRe: scrollbar on top of the page..., Pin
Fred_Smith24-Oct-07 0:53
Fred_Smith24-Oct-07 0:53 
Questioniam not getting minimize button in label in debugging Pin
jagadeeshkumar198424-Oct-07 0:22
jagadeeshkumar198424-Oct-07 0:22 
Questiongetting change forecolor depend on if statement Pin
VinothRao24-Oct-07 0:04
VinothRao24-Oct-07 0:04 
AnswerRe: getting change forecolor depend on if statement Pin
Christian Graus24-Oct-07 0:21
protectorChristian Graus24-Oct-07 0:21 
QuestionSpeed Pin
mihksoft23-Oct-07 23:51
mihksoft23-Oct-07 23:51 
AnswerRe: Speed Pin
Christian Graus23-Oct-07 23:52
protectorChristian Graus23-Oct-07 23:52 
AnswerRe: Speed Pin
Guffa24-Oct-07 2:34
Guffa24-Oct-07 2:34 
QuestionUpload a file to database Pin
mukesh.mr0323-Oct-07 23:48
mukesh.mr0323-Oct-07 23:48 
hi i want to save a file to server. this is the code i'm using in my project.

if ((FileUpload1.PostedFile != null) && (FileUpload1.PostedFile.ContentLength > 0))
{
string fn = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);
string SaveLocation = Server.MapPath("Data") + "\\" + fn;
try
{
FileUpload1.PostedFile.SaveAs(SaveLocation);
Response.Write("The file has been uploaded.");
}
catch (Exception ex)
{
Response.Write("Error: " + ex.Message);
//Note: Exception.Message returns detailed message that describes the current exception.
//For security reasons, we do not recommend you return Exception.Message to end users in
//production environments. It would be better just to put a generic error message.
}
}
else
{
Response.Write("Please select a file to upload.");
}

'Data' is afolder in the server. iwant to store the file in that folder. but its not working properly. its showing a config error while running. is there any additional settings needed?
AnswerRe: Upload a file to database Pin
Christian Graus23-Oct-07 23:51
protectorChristian Graus23-Oct-07 23:51 
GeneralRe: Upload a file to database Pin
mukesh.mr0323-Oct-07 23:57
mukesh.mr0323-Oct-07 23:57 
GeneralRe: Upload a file to database Pin
Christian Graus24-Oct-07 0:33
protectorChristian Graus24-Oct-07 0:33 
AnswerRe: Upload a file to database Pin
Imran Khan Pathan24-Oct-07 0:29
Imran Khan Pathan24-Oct-07 0:29 
QuestionSolve my probs plz..., Pin
Member 387988123-Oct-07 23:27
Member 387988123-Oct-07 23:27 
AnswerRe: Solve my probs plz..., Pin
Paul Conrad27-Oct-07 12:03
professionalPaul Conrad27-Oct-07 12:03 
QuestionFileupload issue Pin
Sunil Wise23-Oct-07 23:14
professionalSunil Wise23-Oct-07 23:14 
AnswerRe: Fileupload issue Pin
N a v a n e e t h23-Oct-07 23:20
N a v a n e e t h23-Oct-07 23:20 
GeneralRe: Fileupload issue Pin
Sunil Wise24-Oct-07 1:30
professionalSunil Wise24-Oct-07 1:30 
GeneralRe: Fileupload issue Pin
Sunil Wise24-Oct-07 2:56
professionalSunil Wise24-Oct-07 2:56 
AnswerRe: Fileupload issue Pin
Imran Khan Pathan23-Oct-07 23:24
Imran Khan Pathan23-Oct-07 23:24 
GeneralRe: Fileupload issue Pin
Sunil Wise24-Oct-07 1:30
professionalSunil Wise24-Oct-07 1:30 
QuestionApplication Pin
SreejithAchutan23-Oct-07 23:03
SreejithAchutan23-Oct-07 23:03 
AnswerRe: Application Pin
Christian Graus23-Oct-07 23:09
protectorChristian Graus23-Oct-07 23:09 
GeneralApplication Pin
SreejithAchutan23-Oct-07 23:26
SreejithAchutan23-Oct-07 23:26 
GeneralRe: Application Pin
Christian Graus23-Oct-07 23:35
protectorChristian Graus23-Oct-07 23:35 
QuestionTransfer checked rows empname(Gridview1) to another page Gridview2 Pin
subbu.sk23-Oct-07 22:53
subbu.sk23-Oct-07 22:53 

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.