I am writing a website with ASP.Net
.
I will have lots of html generic controls
like <div> <span>
and so on..
I have some onclick
javascript functions, onmouseover
javascript functions..
They are working fine..
Then I need to control them on the server side.
So, I add runat="server"
..
After that, all the javascripts aren't working anymore..
I understand they aren't working coz all the events are now going back to server side.
So, is there anyway to make them work??
For eg,
<div id="myDiv1" onclick="myfunction(para1)"><img src="..." /></div>
the above code is working..
<div id="myDiv1" runat="server" onclick="myfunction(para1)"><img src="..." /></div>
the above code is not working...
I can make it work, probably by
<div id="externalDiv1" onclick="myfunction(para1)"><div id="myDiv1" runat="server" ><img src="..." /></div></div>
Is there any other way?