After You Create your JavaScript String In The Code Behind go to the page load event and this to register the JavaScript to your page
Page.RegisterStartupScript("ScriptString", ScriptString);
as I said in my last post some times the id you assign for a control is not always the actual id given to it on the client side
so if you are making JavaScript and using controls id make sure to use control.ID
To change an html
document['docimagename'].src = '/images/imagename.gif'
docimagename is the name attribute of the image
Hide Control
document.getElementById('ControlID').style.visibility = 'hidden';













Leave a Reply