<an*******@discussions.microsoft.com> wrote in message
news:11****************************@phx.gbl...
the error message pointer at OnClick="startClock()":
'startClock' is not a member of 'ASP.USER_aspx'.
That's correct. You've defined a web control and told it to run a procedure
called startClock() when it's clicked. Because of the runat=server, the page
will post back and try to run a server-side procedure called startClock().
You need to:
1) Create a client-side Javascript function called startClock()
2) Change the web control button to a regular HTML control: <input
type=button id=btnUpdate value=Update onClick="startClock();"> control.
Rendering it as a web control won't give you any advantage in this case
because you don't need it to interact with the server when it's clicked