I had an ASP.Net web page that was working just fine.
It was successfully executing the Javascript Startupscript that was Registered in my VB.Net Page_Load code with:
Now, with a re-design, I have changed the same page to now use a Master Page.
I was told to put the javascript code into to the new Page source as follows:
But now NONE of the javascript code works at all. Neither the function startUpScript nor the other function(s).
The non-javascript code works just fine, but the previously working javascript code now no longer works.
What am I doing wrong?
Any advice/suggestions you can offer would be greatly appreciated.
Thanks,
JRB-Bldr
It was successfully executing the Javascript Startupscript that was Registered in my VB.Net Page_Load code with:
ScriptManager.RegisterStartupScript(Me.Page, Page.GetType, "ChangeIconStartUpJavaScript", "startUpScript()", True)
Now, with a re-design, I have changed the same page to now use a Master Page.
I was told to put the javascript code into to the new Page source as follows:
Code:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
function startUpScript() {
// -- some javascript code here ---
}
function chkFileSelect() (
// --- some other javascript code here ---
)
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<%-- Other page code (non-javascript) here --%>
</asp:Content>
But now NONE of the javascript code works at all. Neither the function startUpScript nor the other function(s).
The non-javascript code works just fine, but the previously working javascript code now no longer works.
What am I doing wrong?
Any advice/suggestions you can offer would be greatly appreciated.
Thanks,
JRB-Bldr