Simple routine. Click a button to increase the time by 6 minutes.
Problem is it only works once unless I click a differnt button.
I thought I could check for PostBack but that did not fix.
Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim varEndTime As Date
varEndTime = lblEndTime.Text
lblEndTime.Text = DateAdd(DateInterval.Minute, 6, varEndTime)
End Sub
I will learn ASP.NET if it kills me!
You can teach an old dog new tricks, but it is very hard work!
gene7135
Member
9 Points
61 Posts
Seems to be a state problem
Apr 06, 2012 09:01 PM|LINK
Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim varEndTime As Date varEndTime = lblEndTime.Text lblEndTime.Text = DateAdd(DateInterval.Minute, 6, varEndTime) End SubYou can teach an old dog new tricks, but it is very hard work!