Hi everyone,
I have created a Master Page and set a content page to it, that is all fine.
On my content page i add a user control, which registers javascript using
If Not (Page.IsClientScriptBlockRegistered("js")) Then
Page.RegisterClientScriptBlock("js", jsFunc)
End If
But for some reason the javascript doesnt appear in the source file, once the page is a content page of a master file.
If i create the same page, but dont set the page to be a content page of a master file, then it works fine.
Have i got to use something else rather then Page.IsClientScriptBlockRegistered??
Also, if i create a property on my master page to change the html title, the content page wont find the master page property??!! HELP!!
Thanks in advanced.
I have created a Master Page and set a content page to it, that is all fine.
On my content page i add a user control, which registers javascript using
If Not (Page.IsClientScriptBlockRegistered("js")) Then
Page.RegisterClientScriptBlock("js", jsFunc)
End If
But for some reason the javascript doesnt appear in the source file, once the page is a content page of a master file.
If i create the same page, but dont set the page to be a content page of a master file, then it works fine.
Have i got to use something else rather then Page.IsClientScriptBlockRegistered??
Also, if i create a property on my master page to change the html title, the content page wont find the master page property??!! HELP!!
Thanks in advanced.