-
August 29th, 2006, 08:10 AM
#1
Web User control
Hi,
I am dynamically loading and adding web user contols in my web pages.
When the page gets refreshed the state of the controls get destroyed and the controls are getting loaded again. So i can not get the last status of the control.
How to solve the issue?
Thanx for any kind of help.
Regards,
Shail2k4
-
August 29th, 2006, 08:17 AM
#2
Re: Web User control
Don't load them in dynamical
Or keep a state of their values and then fill them in maually.
-
August 30th, 2006, 12:46 AM
#3
Re: Web User control
Originally Posted by Alsvha
Don't load them in dynamical
Or keep a state of their values and then fill them in maually.
Hi,
I have to load the controls dynamically because there are 20-30 contols. If i put all the controls on the page then every controls get executed and it becomes time consuming. but in this case everything works fine.
when i try to load them dynamically, state of control get destroyed.
for example i have one signin control, if user enters proper userid and password then it gets redirected to another control and it works fine, but when user makes a mistake then login fails, and the page get refreshed. In this case the signin control should be loaded again with the specific message like "Login failed". But the state of the control is getting destroyed. So the signin control loads again with fresh data.
How to maintain the state of the control?
Any example or link will be more useful.
Thanx for any kind of help.
Regards,
Shail2k4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|