Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 March 2nd, 2006, 05:29 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Setting through the Pre_Render function works if that's what you mean by "through code". I just don't know if it has any advantages or disadvantages???



 
Old March 2nd, 2006, 05:36 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, that's what I meant indeed.

You can use it to determine through code whether you want to enable it or not. You could also do that at the control level, e.g.:

myGrid.EnableViewState = False

However, I am not sure about the benefits of setting at the item level. Like I said, I never tested it or used it. I can imagine that by using that, you can minimize one of the problems I mentioned earlier: control state.
By disabling only the state for the item, the control *should* be able to maintain state about things like the PageIndex.

Never tested this, so I could be talking crap.... ;)

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 2nd, 2006, 05:55 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

haha... I doubt it.

Thanks,
Richard






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic selection of next page based on list box s gurupot JSP Basics 1 December 24th, 2007 06:03 AM
Cross Page Post Back problem akhilesh_g ASP.NET 2.0 Professional 2 December 24th, 2007 04:38 AM
Problem with Cross Page Post Back keaja ASP.NET 2.0 Basics 1 October 31st, 2006 07:00 AM
Post Back Required For Drop Down List alyeng2000 ASP.NET 1.0 and 1.1 Professional 4 March 14th, 2005 01:15 PM
Dynamic Dependent List Box improvement SoC Classic ASP Basics 1 August 16th, 2004 01:02 AM





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