Getting Flat file instead of Excel file

Getting Flat file instead of Excel file


 I'm trying to export data's from Recordlist to Excel if we press a button. In the click of the button im doing the below process.

When i click the Download button instead of excel files, a flat is getting open along with visual studio. also the extension is .aspx getting generated instead of .xlsx which is the excel format.

Now how can i generate this in excel format instead of flat file.

Thanks in Advance,

This is almost always due to not setting the proper mime type in the downlaod widget.  See this post for mime type settings.

Hope this helps,

Thank you very much Mr.Curt Raddatz!!!

That mime type resolved my problem.

Again thanks for the info.