Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 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 June 17th, 2007, 02:28 PM
Authorized User
 
Join Date: Mar 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving control state to persistent medium

Hi All,

I have a following task to be implemented in my project and I would like to know ideas and best possible solution with little code from you guys. Please let me know and any help would be greatly appreciated.

I have a Windows forms with DYNAMIC controls such as dropdown and textbox controls. I want to save the current state of these controls such as value of textbox and selected item of dropdown to a file. So that when I login back and above stated state will be restored on the same form.

In addition to this, I would like not to hard code control names and their properties. Could we use default property of control while accessing state of that control? This is because there are 3 panels with different controls and I do not know which one be active while saving the state of controls on active panel.

I would like to use reflection and Xml serialization for this.

Please let best possible solutions for this task.

Thanks,
Mahesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistent Session State accross multiple pages Admiral1701 Classic ASP Professional 1 December 13th, 2006 06:46 PM
Persistent Session State accross multiple pages Admiral1701 Internet Information Services 0 December 13th, 2006 06:27 PM
saving checkbox state in template column texasraven ASP.NET 1.x and 2.0 Application Design 7 September 28th, 2005 01:18 PM
Saving State psingh ASP.NET 1.x and 2.0 Application Design 0 July 8th, 2003 01:18 PM





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