Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 31st, 2005, 01:44 AM
Authorized User
 
Join Date: May 2005
Location: Kolkata, W.B., India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exporting data to excel from datagrid, Problem.

Hi Friends,

How are you all? Hope you all are fine.

I have successfully downloaded data from datagrid to an excel file. Now I am trying to upload that excel file into the web-server after that I was trying to access that excel file as database. OK!

But an error occurred. The error message was “External table is not in the expected format.” Then I have checked the downloaded excel file’s format.

The downloaded excel file’s type was “Web page”. I also have checked its Response.ContentType, That was “text/html”.

But in my download code I have mentioned
Response.ContentType = "application/vnd.ms-excel";

Hope you all understand the problem.

Thanks,

Regards,

Swadhin.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting data from datagrid to excel??? twyce C# 3 March 4th, 2010 04:51 AM
Problem in exporting data from datagrid to Excel deb_kareng ASP.NET 2.0 Professional 4 August 4th, 2007 09:21 AM
problem in exporting datagrid to excel swati_joshi ASP.NET 1.0 and 1.1 Professional 3 June 4th, 2006 11:26 PM
problem exporting datagrid to excel kscdave Classic ASP Professional 0 March 29th, 2005 11:57 AM
Exporting DataGrid To Excel chiefg C# 2 December 31st, 2003 12:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.