Mar 31, 2010

Show master page modalpoup extender in content page

show the master page modalpopup extender in content page..

First step to drag and drop modalpopup extender in master page. give the targetcontrol id and popupid and backgroundcssclass these are common properties,
but u have to show in content page u have to add another attribute 'BehaviourID'.
to give the name to behaviourid.

procedure to call in content page:

create an instance

modalpopupextender modalpopup=(modalpopupextender)page.master.FindControl("modalpopupextenderid");
modalpopup.show();

the above code mention in button click event.
after that in button source mention
"onclientclick="$find(BehaviourID);return false;"

it will works..

No comments:

Post a Comment