Click here to Skip to main content
15,879,239 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to end the session of chrome browser in asp.net (it is working in IE but not in Chrome) Pin
ven75314-Jul-13 7:14
ven75314-Jul-13 7:14 
AnswerRe: how to end the session of chrome browser in asp.net (it is working in IE but not in Chrome) Pin
jkirkerx14-Jul-13 12:46
professionaljkirkerx14-Jul-13 12:46 
GeneralRe: how to end the session of chrome browser in asp.net (it is working in IE but not in Chrome) Pin
ven75315-Jul-13 2:08
ven75315-Jul-13 2:08 
GeneralRe: how to end the session of chrome browser in asp.net (it is working in IE but not in Chrome) Pin
jkirkerx15-Jul-13 13:16
professionaljkirkerx15-Jul-13 13:16 
QuestionHttpContext values are lost during AJAX call after Adding masterpage Pin
Albert8313-Jul-13 22:29
Albert8313-Jul-13 22:29 
AnswerRe: HttpContext values are lost during AJAX call after Adding masterpage Pin
jkirkerx14-Jul-13 8:53
professionaljkirkerx14-Jul-13 8:53 
AnswerRe: HttpContext values are lost during AJAX call after Adding masterpage Pin
Albert8317-Aug-13 17:08
Albert8317-Aug-13 17:08 
QuestionThe file you are trying to open,XXXX,is in different format than specified by the file extension Pin
Jimmiraghu13-Jul-13 2:23
Jimmiraghu13-Jul-13 2:23 
Hi All

I am facing one issue while downloading .xls file in my report page.I am describing the details below
Issue:
--> I am displaying some companies details in report page as table rows and columns like “<table><tr><td>company name……”
--> In report page I am having Download button ,when click on download button my companies details table data need to be download as .xls(Excel) file.
--> when clicking on download button its showing one alert box with following message "The file you are trying to open,XXXX,is in different format than specified by the file extension.Verify that the file is not corrupted and is from a trusted source before opening the file"
--> The below code I written for downloading file in my page.
JavaScript
Var outputhtml="";
outputhtml +="";
outputhtml +="";
outputhtml +="";
outputhtml +="";
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader( "Content-disposition","attachment; filename=My Company Details.xls");
Response.write(outputhtml);


Please help me to solve this issue.

Thanks in advance.

modified 14-Jul-13 21:48pm.

AnswerRe: The file you are trying to open,XXXX,is in different format than specified by the file extension Pin
Bernhard Hiller14-Jul-13 21:58
Bernhard Hiller14-Jul-13 21:58 
Questionsample projects required Pin
ppayal12-Jul-13 20:29
ppayal12-Jul-13 20:29 
AnswerRe: sample projects required Pin
Richard MacCutchan12-Jul-13 22:19
mveRichard MacCutchan12-Jul-13 22:19 
QuestionExport to excel /xlsx file Pin
Ballita12-Jul-13 1:53
Ballita12-Jul-13 1:53 
AnswerRe: Export to excel /xlsx file Pin
ZurdoDev12-Jul-13 7:25
professionalZurdoDev12-Jul-13 7:25 
Questionimage icon should display from data base on leftside of treeview. Pin
christhuxavier11-Jul-13 3:15
christhuxavier11-Jul-13 3:15 
AnswerRe: image icon should display from data base on leftside of treeview. Pin
jkirkerx11-Jul-13 11:58
professionaljkirkerx11-Jul-13 11:58 
QuestionSelect Excel File as Database table in runtime - ASP.Net - C# Pin
SravanKumar-A11-Jul-13 2:51
SravanKumar-A11-Jul-13 2:51 
AnswerRe: Select Excel File as Database table in runtime - ASP.Net - C# Pin
chester_it2111-Jul-13 8:59
chester_it2111-Jul-13 8:59 
QuestionMigration from google calendar V2 to V3 Pin
Er Himanshu Jain11-Jul-13 2:13
Er Himanshu Jain11-Jul-13 2:13 
AnswerRe: Migration from google calendar V2 to V3 Pin
Richard MacCutchan11-Jul-13 2:27
mveRichard MacCutchan11-Jul-13 2:27 
AnswerRe: Migration from google calendar V2 to V3 Pin
Er Himanshu Jain11-Jul-13 2:34
Er Himanshu Jain11-Jul-13 2:34 
GeneralWSDL issues Pin
asv10-Jul-13 22:48
asv10-Jul-13 22:48 
SuggestionRe: WSDL issues Pin
Richard MacCutchan10-Jul-13 23:13
mveRichard MacCutchan10-Jul-13 23:13 
GeneralRe: WSDL issues Pin
jkirkerx12-Jul-13 7:12
professionaljkirkerx12-Jul-13 7:12 
QuestionWebServices Encoding Problem Pin
asv10-Jul-13 11:25
asv10-Jul-13 11:25 
AnswerRe: WebServices Encoding Problem Pin
jkirkerx12-Jul-13 7:26
professionaljkirkerx12-Jul-13 7:26 

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.