AJAX Timer causes javascript error on page
-
I have an AJAX asp:Timer that when added to my LogView.aspx page causes a javascript error in the browser: Expected ';' Default.aspx Line: 963 Code:0 First, the page that is being displayed in LogView.aspx and not Default.aspx. Also there is no javascript on my LogView.aspx page:
The code behind is: protected void Timer1_Tick(object sender, EventArg e) { TextBox1.Text = "Hello"; } Also, when run the Timer event is never called. I did a view source and the error line shows where the onLoad () System.Application.add.init(function () {$create(Sys.UI._Timer, ... This is confusing. Any Ideas? Thanks, Steve Holdorf
-
I have an AJAX asp:Timer that when added to my LogView.aspx page causes a javascript error in the browser: Expected ';' Default.aspx Line: 963 Code:0 First, the page that is being displayed in LogView.aspx and not Default.aspx. Also there is no javascript on my LogView.aspx page:
The code behind is: protected void Timer1_Tick(object sender, EventArg e) { TextBox1.Text = "Hello"; } Also, when run the Timer event is never called. I did a view source and the error line shows where the onLoad () System.Application.add.init(function () {$create(Sys.UI._Timer, ... This is confusing. Any Ideas? Thanks, Steve Holdorf
Try using proper closing tags instead of using /> on a single tag. ajax-timer-ontick-event-how-to-use.html
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.
-
Try using proper closing tags instead of using /> on a single tag. ajax-timer-ontick-event-how-to-use.html
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.
Thanks for your help. I did try both ways and still the javascript error. Again thanks!!!! Steve Holdorf
-
Thanks for your help. I did try both ways and still the javascript error. Again thanks!!!! Steve Holdorf
What language is the ASP page coded with, C#? I just wonder what's being sent to the browser, like an erroneous block of C#.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.
-
What language is the ASP page coded with, C#? I just wonder what's being sent to the browser, like an erroneous block of C#.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.
It is writen in C#. When the ajax timer is removed from the page no javascript errors occur. The timer event is correct and on compile no build errors. Thanks, Steve Holdorf