DJOuk:
If you have a page which is implemented from a MasterPage and you wish to put JavaScript code in the head of that page alone, How would you go about it?
You place a ContentPlaceHolder in the MasterPage as that does not seem to be working for me...
Hi DJOuk,
Based on my experience, we can assign value to InnerHtml of the property of "Header" to solve this problem, see the following code,
protected void Page_Load(object sender, EventArgs e)
{
Page.Master.Page.Header.InnerHtml = @"
<script language='javascript' type='text/javascript'>
function Test(){
alert('OK');
}
</script>";
}