last day (16 days later) » 

5:05 AM
0
A: How to download excel file using Ajax method- here my file is downloaded in Temp folder not Downloaded in Browser?

Udara KasunTry this //Exporting errors to excel file function ExcportErrorListToExcel() { debugger; $.ajax({ url: 'Import/ExportErrorToExcel', type: 'GET', data: { dataExchangeSelectedColum: $('#hdnSelectedColumn').val(), entityvalue: $('#hdnEntity').val(), filename: $('#hdn...

 
Let me try with this one. I will update the result here
stille i didnt get the result. I didnt get the file name from controller to this ajax why this is happen?
 
send me folder structure
 
"D:\\Dhanils_Kingdom\\Dhanil\\Projects\\PATS\\PATS.UserInter‌​face\\Temp\\61c62b82‌​-ea‌​b5-40bf-8c35-4653‌​ff05644b.xlsx" this is the path where my excel file now downloaded
 
your project name may be ''PATS"
 
Yes it the project name
 
5:05 AM
temp folder inside the PATS.UserInterface folder?
 
Yes
i get the result from controller to ajax is like this ''PK�T5Na����rxl/workbook.xml �(�����0D���p �$44����+�7���'' a long result like this
 
send your local url like this "http://localhost:60310/Home/Energy"
 
5:21 AM
ok
"http://localhost:61557/Import?entity=Discipline"
 
@dhanildinesan not clear. please send again result of controller
@dhanildinesan plz send me ajax result clearly
localhost:61557/PATS.UserInter‌​face/Temp/61c62b82‌​-ea‌​b5-40bf-8c35-465‌​3‌​ff05644b.xlsx
just click above link and give me a feeback
 
5:49 AM
ok
GET localhost:61557/Import/… net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
"GET localhost:61557/Import/… net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION"
@UdaraKasun i get the feedback like this HTTP Error 404.0 - Not Found
 
from ajax? am i right?
 
yes HTTP Error 404.0 - Not Found is shown in page
 
ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION" this message was shown in ajax
 
ok already have you generated excel file? send me a file name
we can fixed that error after this test
 
6:00 AM
ok
61c62b82-eab5-40bf-8c35-4653ff05644b.xlsx
 
click or paste and enter on browser above link when run your project
 
6:25 AM
same as above
not found
 
did you use some images in your site?
 

  last day (16 days later) »