Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting data from datagrid to excel??? twyce C# 3 March 4th, 2010 03: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 10:57 AM
Exporting DataGrid To Excel chiefg C# 2 December 31st, 2003 11:23 AM



All times are GMT -4. The time now is 12:28 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.