| 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: not able to update live controls with live timer |
| bhupi From: nürnberg, Germany Posts: 20 Member Since: 06/28/06 |
posted June 28, 2006 7:03 AM Hi, I am creating a webpart using live controls. I am using livetimer.tick event to check for changes in databank and update my controls collection. The application runs fine, until the table in databank is changed. the timer stops running , the application proceeds further only when I click on refresh in the browser.Could you help? |
| bhupi From: nürnberg, Germany Posts: 20 Member Since: 06/28/06 |
posted June 28, 2006 9:13 AM Even if I use usercontrol instread of a custom control, the timer runs but the changes in table are not shown until I click refresh button. Protected Sub timer_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles timer.Tick content.Controls.Clear() CreateBox(content) lblShow.Text = System.DateTime.Now.ToString() Private Sub CreateBox(ByVal container As LivePanel) Dim myConnection As New SqlConnection(ConnectionString) myConnection.Open() Dim cmd As New SqlCommand("testActivityMember_Page", myConnection) cmd.CommandType = CommandType.StoredProcedure Dim reader As SqlDataReader = cmd.ExecuteReader() While reader.Read() Dim txtMessageVor As New Literal Dim link As New LiveHyperLink container.Controls.Add(space) link.Text = "1." & reader("sendername") link.Attributes.Add("OnClick", "window.open('http://www.microsoft.com');") link.NavigateUrl = "#" container.Controls.Add(link) txtMessageNach.Text = " hat dich zum chat eingeladen " container.Controls.Add(txtMessageNach) End sub |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted June 29, 2006 11:10 AM Hello - is this posting a duplicate of the issue in this thread? http://support.dart.com/postings?topicid=6977 Does the sample code posted there help with your implementation? |
| bhupi From: nürnberg, Germany Posts: 20 Member Since: 06/28/06 |
posted June 29, 2006 11:24 AM i set my enableviewstate to false and then it worked, but I was not able to update the data with the timer_tick event. Then I dropped the idea of having this funcationality in class and developed a usercontrol. |
| Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|