Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 November 19th, 2003, 10:00 PM
Authorized User
Join Date: Sep 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default Persistence of control states between posts

Hi everyone,

I have been trying to develop a custom control (a tree control in ASP.NET) that contains several check boxes. The problem is that the check boxes do not retain their values between posts.

What is the best way to make the state of a control persistent between posts?



Old November 20th, 2003, 08:11 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

If the ID of the checkboxes stays consistant when you add them to the control tree, they should pick up the posted values when the page does a postback. You are talking about postback right? Or are you talking about persisting the control's state between pages? That is a whole other story.

Work smarter, not harder.

Similar Threads
Thread Thread Starter Forum Replies Last Post
objects and states deepak Java Basics 7 June 26th, 2008 03:26 AM
Dgrid control states in DataGrid dungerdanish General .NET 0 March 28th, 2005 06:42 AM

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