Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x 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 1st, 2007, 04:29 AM
Registered User
 
Join Date: Dec 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to retain values of dynamic controls when page

Hi to all
I m designing an online examination form on which controls are designed at runtime depending on the records in Database.
User hav to answers the question by clicking radio button associated with that question and at last hav to click on submit button created at run time.
Now when user click on submit button before click event, page load event fires again and all controls refreshed n attain blank values because on load event m creating the controls so it refreshes the page n create new controls with no values in it.
now what should I do plz tell me.
Plz answer me urgently if anyone can.Thanks


 
Old February 7th, 2007, 02:32 PM
Authorized User
 
Join Date: Feb 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

generate Labels according to each page
visible property of this label false.
and pass no of answer like if Ans no 3 then pass it.

like 3 page then 3 label first no represent page no in label.

1:234123344
2:342142223
3:234342442







Similar Threads
Thread Thread Starter Forum Replies Last Post
Retain the value of Controls S_Dogra ASP.NET 1.0 and 1.1 Professional 1 January 31st, 2007 01:21 PM
Get values of asp controls on previous page GraceOriole ASP.NET 2.0 Professional 0 December 20th, 2006 11:35 PM
How to retain form values from dependent list ? George B Javascript 0 September 15th, 2006 03:54 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.