asp.net why can i not get the <img/> src in javascript when it has a runat="server"?

I have tried to get it directly using the id " img1.src" and i have tried with document.getelementbyid("img1").src it says that there is no object. this is only when the image has a runat="server"
I want to use the runat server so i can set the src at the server but then i want to be able to change the image with java after the page is loaded. Thanks for the help.
is the a way to get rid of the runat server an still assign a src to the img on the server side?
 
Back
Top