F
First Last
Hi,
Newbie question: Why use Page.ClientScript.RegisterClientScript*
when we can just make a .js file and include a reference to it in the page?
(i.e. <script src="myscript.js" type="text/javascript"></script>)
Is it because RegisterClientScript* enables us to reference ASP.NET
objects within the .js?
Thx,
Hank
Newbie question: Why use Page.ClientScript.RegisterClientScript*
when we can just make a .js file and include a reference to it in the page?
(i.e. <script src="myscript.js" type="text/javascript"></script>)
Is it because RegisterClientScript* enables us to reference ASP.NET
objects within the .js?
Thx,
Hank