I need to have a webpart with a continuously updating clock, in order words, it changes every second. I found something on the web in javascript that works. I have the webpart itself working but now I have to transfer the javascript code into the c# web part. Does anyone know the best way to handle this?
I'm trying to call the javascript function in C# but I might have the syntax wrong, I'm rusty in C#. "Attach" is located in a .js file. Am I calling the javascript function correctly in C#?
string vScript = "<script language=\"javascript\">" +
" var TZClockSample = new TZClock();" +
"TZClockSample.Attach('MounDay', '');" +
"</script" + ">";
DateLiteral.Text = vScript;
ANy help is appreciated.
I'm trying to call the javascript function in C# but I might have the syntax wrong, I'm rusty in C#. "Attach" is located in a .js file. Am I calling the javascript function correctly in C#?
string vScript = "<script language=\"javascript\">" +
" var TZClockSample = new TZClock();" +
"TZClockSample.Attach('MounDay', '');" +
"</script" + ">";
DateLiteral.Text = vScript;
ANy help is appreciated.