How to call javascript function on page load of content page in asp.net ?


Hi
we can call “javascript function on page load of content page of master page in asp.net” in code behind file like this

 protected void Page_Load(object sender, EventArgs e)
    {

        ClientScript.RegisterStartupScript(GetType(), ClientID, "EnableColorChange();EnableFontSize();", true);
        
    }

Note: Here i have written two javascript functions which one i m calling on page load.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: