Click here to Skip to main content
15,910,603 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: WEB API - POST handler hangs Pin
Richard Deeming22-Mar-17 5:29
mveRichard Deeming22-Mar-17 5:29 
GeneralRe: WEB API - POST handler hangs Pin
Member 1307682222-Mar-17 5:36
Member 1307682222-Mar-17 5:36 
GeneralRe: WEB API - POST handler hangs Pin
Richard Deeming22-Mar-17 5:45
mveRichard Deeming22-Mar-17 5:45 
GeneralRe: WEB API - POST handler hangs Pin
Member 1307682222-Mar-17 6:12
Member 1307682222-Mar-17 6:12 
GeneralRe: WEB API - POST handler hangs Pin
Richard Deeming22-Mar-17 6:21
mveRichard Deeming22-Mar-17 6:21 
GeneralRe: WEB API - POST handler hangs Pin
Member 1307682222-Mar-17 7:05
Member 1307682222-Mar-17 7:05 
QuestionC#, MVC5 WebGrid export to Excel Pin
Member 1129217222-Mar-17 1:59
Member 1129217222-Mar-17 1:59 
AnswerRe: C#, MVC5 WebGrid export to Excel Pin
Richard Deeming22-Mar-17 2:28
mveRichard Deeming22-Mar-17 2:28 
You're not "exporting to Excel". You're sending HTML content, but telling the browser to open it in Excel.

Excel will do its best to import the HTML, but you'll have virtually no control over the formatting and layout.

If you want precise formatting control, you need to export a real Excel file. There are several libraries which will let you do this - for example:

NB: Don't be tempted to try Office Interop. Apart from the fact that you'd need to install and license Office on the server, it's not supported:
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


Questionhow to make dish tv web api in asp.net Pin
Member 1307299120-Mar-17 20:37
Member 1307299120-Mar-17 20:37 
AnswerRe: dish tv recharge web api Pin
Richard MacCutchan20-Mar-17 23:05
mveRichard MacCutchan20-Mar-17 23:05 
QuestionRe: dish tv recharge web api Pin
ZurdoDev22-Mar-17 9:48
professionalZurdoDev22-Mar-17 9:48 
Questionaspx on mobile browsers Pin
Member 1243345618-Mar-17 3:39
Member 1243345618-Mar-17 3:39 
AnswerRe: aspx on mobile browsers Pin
Richard Deeming18-Mar-17 7:05
mveRichard Deeming18-Mar-17 7:05 
QuestionFailed to resolve include text for file:C:\Users\XXXXX\Desktop\Angular2Apps\BSCSecurityAddressBookWeb\BSCSecurityAddressBookWeb\Scripts\Manager.ttinclude Pin
indian14316-Mar-17 13:41
indian14316-Mar-17 13:41 
AnswerRe: Failed to resolve include text for file:C:\Users\XXXXX\Desktop\Angular2Apps\BSCSecurityAddressBookWeb\BSCSecurityAddressBookWeb\Scripts\Manager.ttinclude Pin
ZurdoDev17-Mar-17 2:05
professionalZurdoDev17-Mar-17 2:05 
GeneralRe: Failed to resolve include text for file:C:\Users\XXXXX\Desktop\Angular2Apps\BSCSecurityAddressBookWeb\BSCSecurityAddressBookWeb\Scripts\Manager.ttinclude Pin
indian14320-Mar-17 13:28
indian14320-Mar-17 13:28 
QuestionUsing a MVC attribute to confirm identity, rediect to signin, then to original destination Pin
jkirkerx16-Mar-17 9:31
professionaljkirkerx16-Mar-17 9:31 
AnswerGot this to work, not sure if it's kosher Pin
jkirkerx16-Mar-17 11:11
professionaljkirkerx16-Mar-17 11:11 
QuestionHow to read Excel data and insert into the access database using Microsoft.Office.Inteop.Excel in asp.net using CSharp language Pin
Member 1306265215-Mar-17 22:53
Member 1306265215-Mar-17 22:53 
AnswerRe: How to read Excel data and insert into the access database using Microsoft.Office.Inteop.Excel in asp.net using CSharp language Pin
F-ES Sitecore15-Mar-17 23:16
professionalF-ES Sitecore15-Mar-17 23:16 
AnswerRe: How to read Excel data and insert into the access database using Microsoft.Office.Inteop.Excel in asp.net using CSharp language Pin
Richard MacCutchan16-Mar-17 0:36
mveRichard MacCutchan16-Mar-17 0:36 
QuestionHow can I refresh partial view in ASP.NET MVC 5? Pin
Member 1299209415-Mar-17 6:38
Member 1299209415-Mar-17 6:38 
AnswerRe: How can I refresh partial view in ASP.NET MVC 5? Pin
bVagadishnu16-Mar-17 7:28
bVagadishnu16-Mar-17 7:28 
GeneralRe: How can I refresh partial view in ASP.NET MVC 5? Pin
Member 1299209416-Mar-17 9:40
Member 1299209416-Mar-17 9:40 
GeneralRe: How can I refresh partial view in ASP.NET MVC 5? Pin
bVagadishnu17-Mar-17 8:24
bVagadishnu17-Mar-17 8:24 

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.