| Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development | Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
| Author | Forum: PowerWEB LiveControls for ASP.NET Topic: live timer |
| wombel From: Nürnberg, Germany Posts: 55 Member Since: 09/22/05 |
posted June 28, 2006 4:14 AM I have a small problem. In my code that value of time changes constantly but the value of i does not change . Private Sub mytimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles myTimer.Tick i = i + 1 lblShow.Text = ". Und die Uhr zeigt : " & System.DateTime.Now.ToLongTimeString() & ": " & i |
| wombel From: Nürnberg, Germany Posts: 55 Member Since: 09/22/05 |
posted June 28, 2006 4:27 AM My actual problem is that I am creating live controls dynamically and adding to livepanel in createchildcontrols method. in the tick event I want to read tha data from databank and accordingly want to rebuild the control collection. |
| wombel From: Nürnberg, Germany Posts: 55 Member Since: 09/22/05 |
posted June 28, 2006 4:35 AM I forgot to mention that this code is in custom webpart. So I can't use session or application variables. |
| wombel From: Nürnberg, Germany Posts: 55 Member Since: 09/22/05 |
posted June 28, 2006 5:10 AM Whenever the table in databank is changed following error occurs Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. Could you give me some advice. |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted June 28, 2006 3:44 PM If you are creating controls dynamically, you may want to assign a unique value to the ID property so that the viewstate can be reloaded and matched with the control. Can you test this to see if the exeption is resolved? |
| Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|