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 January 31st, 2007, 08:07 AM
Registered User
 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retain the value of Controls

I have a page containg a few checkbox, radiobuttonlist, DropDownLIst and textbox as my filter criterias for search. After clicking a button i get the shortlisted records ina datagrid. in datagrid i have a link button which takes to me to another page containing the details. I have a Back button on that detail page. When i click on that i goes back to the main page containing the filters criteria.

Now the problem is that i got all the controls back having no values whereas what i want that each control should retain the values i last selected.

 
Old January 31st, 2007, 01:21 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

You could stay on the same page. Just have the details appear below the short list. The values for the search criteria should stay the same as long as the functions stay in the 'If not IsPostBack' section of your page load.








Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retain the value for the drop down. janakiraman ASP.NET 3.5 Basics 0 July 11th, 2008 08:37 AM
Button does not retain visible property mhshpk ASP.NET 2.0 Professional 2 July 18th, 2007 11:24 AM
How to retain values of dynamic controls when page fozia_izhar .NET Framework 1.x 1 February 7th, 2007 02:32 PM
Retain form values qhong Javascript 1 May 13th, 2004 02:02 AM





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