Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 February 8th, 2006, 09:19 AM
Authorized User
Join Date: Jul 2005
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default save the sql string

I have a GridView whose Datasource is NOT from ObjectDataSource / SqlDataSource. It comes from a DataSet/DataTable.

If AllowSorting / AllowPaging is enabled, I will get an error.

I tried to put the entire DataBind block inside
if (!Page.IsPostBack) { ... }

I still get an error. Anyone?

Old February 13th, 2006, 01:09 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


Probably because you need to store the resulting datasource in the cache/session. What is the error first, though?


Similar Threads
Thread Thread Starter Forum Replies Last Post
save String? information.java Java Basics 1 December 31st, 2006 01:15 PM
File to binary and save as string eelisMX Pro VB.NET 2002/2003 4 December 8th, 2004 10:26 AM
Save Spreadsheet to SQL gbyrkje Classic ASP Databases 2 November 16th, 2004 02:44 PM
How to save string value as html file? android66 Javascript 0 September 3rd, 2004 12:00 AM
SQL Query Analyzer Save As ioates SQL Server 2000 1 May 18th, 2004 08:01 AM

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