Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
202 Points
102 Posts
Sep 12, 2011 02:43 PM|LINK
Decker's reply certainly works. The following also works. In the head section of the master page:
<script src='<%# Page.ClientScript.GetWebResourceUrl(typeof(ServerCtrlProjNameSpace.PickAnyClass), "ServerCtrlProjNameSpace.Scripts.dateValidation.js") %>' type="text/javascript"></script>
The inline data-binding expression is triggered by the following in the load event handler for the master page:
Page.Header.DataBind();
swartzbill20...
Member
202 Points
102 Posts
Re: migrate javascript to library
Sep 12, 2011 02:43 PM|LINK
Decker's reply certainly works. The following also works. In the head section of the master page:
<script src='<%# Page.ClientScript.GetWebResourceUrl(typeof(ServerCtrlProjNameSpace.PickAnyClass), "ServerCtrlProjNameSpace.Scripts.dateValidation.js") %>' type="text/javascript"></script>
The inline data-binding expression is triggered by the following in the load event handler for the master page:
Page.Header.DataBind();