Wrox Programmer Forums
|
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9
This is the forum to discuss the Wrox book Professional ASP.NET 3.5: In C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470187579
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 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
 
Old July 15th, 2009, 02:22 PM
Authorized User
 
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
Default export to excel link

how to show export to excel link if the row number is more than 200 in ASP.NET without showing the table(with more than 200 rows) to the user?

if I put false in resultsDatagrid.Visible then the export to excel doesn't work!!!

else if (count> 200)
{
DataView view = ds.Tables[0].DefaultView;
view.Sort=e.SortExpression;
resultsDatagrid.DataSource = view;
resultsDatagrid.DataBind();
resultsDatagrid.Visible = true;
resultsLabel.Text = "More than 200 results found. Please Click the Export to Excel Link to Download the Results.";
resultsLabel.Visible = true;
exportLinkbutton.Visible = true;
}
 
Old July 16th, 2009, 11:17 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default Try...

Setting the display property in the style

resultsDatagrid.Style("display") = "none";
__________________
Jason Hall

Follow me on Twitter @jhall2013
The Following User Says Thank You to alliancejhall For This Useful Post:
skhan (July 16th, 2009)
 
Old July 16th, 2009, 11:57 AM
Authorized User
 
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
Default

:( it doesn't work.....if I write resultsDatagrid.Style it says a method needs to be declared....





Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to Excel Suresh62 Access 0 May 19th, 2008 06:38 AM
Export to Excel maigoro ASP.NET 3.5 Basics 5 April 10th, 2008 11:32 PM
Export to Excel using C# lily611 Crystal Reports 2 July 23rd, 2006 10:23 AM
Export to Excel rweide Classic ASP Basics 5 February 23rd, 2005 09:13 AM
how to export to excel anjaneekumarcl Beginning VB 6 2 September 29th, 2004 04:13 AM





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