Click here to Skip to main content
15,898,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionImport contacts from Gmail and Yahoo in Asp.net Pin
NetMan201224-May-10 4:31
NetMan201224-May-10 4:31 
AnswerRe: Import contacts from Gmail and Yahoo in Asp.net Pin
Not Active24-May-10 4:35
mentorNot Active24-May-10 4:35 
GeneralRe: Import contacts from Gmail and Yahoo in Asp.net Pin
NetMan201224-May-10 4:42
NetMan201224-May-10 4:42 
GeneralRe: Import contacts from Gmail and Yahoo in Asp.net Pin
Not Active24-May-10 4:48
mentorNot Active24-May-10 4:48 
QuestionDynamic Wed Service: SOAP request message with non primitive types as parameters!!! [modified] Pin
stream2ocean24-May-10 3:41
stream2ocean24-May-10 3:41 
QuestionWeb Parts Personalization Reset problem Pin
Richard Lund24-May-10 3:11
Richard Lund24-May-10 3:11 
QuestionIframe reload Pin
siva45524-May-10 2:49
siva45524-May-10 2:49 
QuestionPlease help me.......MIME Type for XLS file Pin
cheguri24-May-10 0:02
cheguri24-May-10 0:02 
Dear Friends,

I have written the following code to upload .xls file. I want to upload only .xls file.


if (fuploadPaySlip.HasFile)
{
if (fuploadPaySlip.PostedFile.ContentType == "application/x-msexcel")
{
fuploadPaySlip.PostedFile.SaveAs(Server.MapPath(".") + "//uploadedfiles//" + fuploadPaySlip.FileName);
lblErrorMsg.Text = "Uploaded Successfully";
}
else
lblErrorMsg.Text = "Not a valid File";
}
else
lblErrorMsg.Text = "No File is Selected";


but it is always saying "Not a valid file". I have even tried with other MIME Types like

application/excel
application/vnd.ms-excel
application/x-excel

Still I am getting error. Please anyone can help me. Its very urgent.

Regards,
Dileep.
AnswerRe: Please help me.......MIME Type for XLS file Pin
Sandeep Mewara24-May-10 3:09
mveSandeep Mewara24-May-10 3:09 
QuestionChat with webcams Pin
rainyboy123-May-10 23:14
rainyboy123-May-10 23:14 
AnswerRe: Chat with webcams Pin
Brij24-May-10 1:29
mentorBrij24-May-10 1:29 
QuestionHow to upload Excel file to Database from ASP.NET Pin
cheguri23-May-10 22:41
cheguri23-May-10 22:41 
AnswerRe: How to upload Excel file to Database from ASP.NET Pin
Gaurav Dudeja India23-May-10 23:02
Gaurav Dudeja India23-May-10 23:02 
QuestionConsole application with Asp.Net Project Pin
slSoftware23-May-10 22:31
slSoftware23-May-10 22:31 
AnswerRe: Console application with Asp.Net Project Pin
Not Active24-May-10 1:52
mentorNot Active24-May-10 1:52 
GeneralRe: Console application with Asp.Net Project Pin
slSoftware24-May-10 1:56
slSoftware24-May-10 1:56 
GeneralRe: Console application with Asp.Net Project Pin
Not Active24-May-10 2:24
mentorNot Active24-May-10 2:24 
GeneralRe: Console application with Asp.Net Project Pin
slSoftware24-May-10 2:32
slSoftware24-May-10 2:32 
GeneralRe: Console application with Asp.Net Project Pin
Not Active24-May-10 3:02
mentorNot Active24-May-10 3:02 
QuestionHow to Display Confirmation Dialog Box Pin
cheguri23-May-10 21:18
cheguri23-May-10 21:18 
AnswerRe: How to Display Confirmation Dialog Box Pin
Dinesh Mani23-May-10 21:46
Dinesh Mani23-May-10 21:46 
QuestionenableEventValidation in IE Pin
sudheesh kumar s23-May-10 21:07
sudheesh kumar s23-May-10 21:07 
QuestionCustom error configuration setting Pin
A M SOMAN23-May-10 19:24
A M SOMAN23-May-10 19:24 
QuestionDo I need to issue Http Code 301 when I use Response.Redirect ? Pin
Nadia Monalisa23-May-10 18:59
Nadia Monalisa23-May-10 18:59 
AnswerRe: Do I need to issue Http Code 301 when I use Response.Redirect ? Pin
Yusuf23-May-10 19:16
Yusuf23-May-10 19:16 

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.