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.getEle mentById('Goals _Main_tbProduct 0').value
by not by using
document.getEle mentById('<%=tb Product0.Client ID%>').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.getEl ementById(...)' 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.getEle mentById('Goals _Main_tbProduct 0').value
by not by using
document.getEle mentById('<%=tb Product0.Client ID%>').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.getEl ementById(...)' is null or not an object.
Can anyone give me any advice, this is getting rather annoying.
Thanks
Comment