I have a function on masterpage and i want to call it from content page from codebehind.this is my trying :\[code\]ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alert__", string.Format("setStatusBarMessage('{0}',{1});", barMessage, type, ""), true);\[/code\]"setStatusBarMessage" function is declare in masterpage , so this code doesnt working.setStatusBarMessage is a client side function.MasterPage:\[code\]<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Content.master.cs" Inherits="F8.CRM.Pages.Content" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder></head><body> <form id="form1" runat="server"> <asp:ScriptManager runat="server" /> <div> <asp:ContentPlaceHolder ID="MainContent" runat="server"> </asp:ContentPlaceHolder> </div> </form></body></html><script type="text/javascript"> function hello() { alert('hi mennan'); }</script>\[/code\]ContentPage :\[code\]<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Content.Master" AutoEventWireup="true" CodeBehind="Departman.aspx.cs" Inherits="F8.CRM.Departman" %><%@ Register Src="http://stackoverflow.com/questions/12782928/~/Controls/Objects/StudioSideBox/StudioSideBox.ascx" TagName="StudioSideBox" TagPrefix="uc1" %><%@ Register Src="http://stackoverflow.com/questions/12782928/~/Controls/Objects/Baslik/Baslik.ascx" TagName="Baslik" TagPrefix="uc2" %><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> my html... <script type="text/javascript"> my script codes... </script></asp:Content>\[/code\]This masterpage and content page is under a iframe object.