CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Web User control

  1. #1
    Join Date
    Jun 2006
    Posts
    148

    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

  2. #2
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Web User control

    Don't load them in dynamical

    Or keep a state of their values and then fill them in maually.

  3. #3
    Join Date
    Jun 2006
    Posts
    148

    Re: Web User control

    Quote 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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)