asp.net - How to call javascript function of child page from master page javascript -
I am writing an asp.net application I am using this master page in I have many There are children, which includes some java script functions;
We say;
function childpage function () {// do something; }
and master page as the Java Script function;
function masterpage function () {// ChildPage function is required to call; Here}
Is it possible to call the childpage function () from the masterpage function ()?
If someone knows how to do this, please help me. thank you in advanced.
Yes. Simply childpage function () on the masterpage; Call
and it will fire.
function masterpage function () {childpage function (); // This will work fine}
It works in another way, so that you can call masterpiece function ()
from your child's page and also Eirere
This is because, when provided, html of each master page and child page is added, so both pages share the same javascript.
MasterPage
is a template that wraps around your content page.
Comments
Post a Comment