swolff1978, thanks for posting this information. I had been having a hard time referencing a modalpopupextender from my javascript code (and may possibly still be). Currently, I'm having an issue with referencing the show() method of my modalpopupextender. Here is a quick rundown:
Overview: I have a custom control that contains a wizard control. On that wizard control I am attempting to transfer the validationsummary information into a modalpopupextender rather than displaying a validationsummary on the page itself. I have a modalpopupextender sitting inside my wizard control which I am referencing from javascript on the aspx. I have added some attributes to three controls that pass the control into my javascript function. Details follow...
Error: Object doens't support this property or method.
Codebehind (this codes sits in the Page_PreRender method):
((Button)this.FindControl("wizDCS$StepNavigationTemplateContainerID$StepNextButton")).Attributes.Add("onclick", "mVsInit('ValSumDiv', " + wizDCS.WizardSteps[6].FindControl("mpeValSum_Info") + ", 'no');");
((Button)this.FindControl("wizDCS$StepNavigationTemplateContainerID$StepNextButton")).Attributes.Add("onmouseup", "mVsInit('ValSumDiv', '" + wizDCS.WizardSteps[6].FindControl("mpeValSum_Info") + "', 'no');");
this.Attributes.Add("onload", "mVsInit('ValSumDiv', '" + wizDCS.WizardSteps[6].FindControl("mpeValSum_Info") + "', 'no');");Javascript:
var objVSMH = new oVsModalHandler();
...
function mVsInit(val4, val5, val6)
{
objVSMH.setInternalDiv(val4);
objVSMH.setVsCtrl(val5);
objVSMH.setInit(val6);
objVSMH.GetStarted();
}
function oVsModalHandler()
{
var internalDiv = "";
var internalVsCtrl = null;
var internalInit = "";
function mValSumModalDialog()
{
var mpe = internalVsCtrl;
Page_ClientValidate();
if (!Page_IsValid)
mpe.show();
}
this.setInternalDiv = function(val4)
{
internalDiv = val4;
}
this.setVsCtrl = function(val5)
{
internalVsCtrl = val5;
}
this.setInit = function(val6)
{
internalInit = val6;
}
this.GetStarted = function()
{
mValSumModalDialog();
}
}For the life of me, I can't figure out why I can't use the show method for this object (internalVsCtrl/mpe). Any suggestions or ideas you might have would be greatly appreciated. Thanks and take care.