J
James Pemberton
I have recently created a ASP site utilizing Master Pages and all works fine
until I want to proces my javascripts. Just to let you know, most of
cliewnt side scripting is new to me.
But anyway,
I can retrieve and updat ethe value a textbox on the page by using the
document.getElementById('Goals_Main_tbProduct0').value
by not by using
document.getElementById('<%=tbProduct0.ClientID%>').value
I would prefer to use the latter because I have read that is a much leaner
way to process just in case you page ever changes or if you ever add any
additional complexity to it. But evertime I try to retrieve the value it
returns a null value or if I try to set hte value I get Microsoft JScript
runtime error: 'document.getElementById(...)' is null or not an object.
Can anyone give me any advice, this is getting rather annoying.
Thanks
until I want to proces my javascripts. Just to let you know, most of
cliewnt side scripting is new to me.
But anyway,
I can retrieve and updat ethe value a textbox on the page by using the
document.getElementById('Goals_Main_tbProduct0').value
by not by using
document.getElementById('<%=tbProduct0.ClientID%>').value
I would prefer to use the latter because I have read that is a much leaner
way to process just in case you page ever changes or if you ever add any
additional complexity to it. But evertime I try to retrieve the value it
returns a null value or if I try to set hte value I get Microsoft JScript
runtime error: 'document.getElementById(...)' is null or not an object.
Can anyone give me any advice, this is getting rather annoying.
Thanks