Wednesday, March 28, 2012

Content Place Holder containing accordion control

Hi

I'm new'ish to ASP (AJAX) and was trying to create a web site. Most has gone fine but I have a Master page with a content Place Holder on it.

I tried to put an accordion control on (between content tags) and it told me I needed a Script Manager which I did put on. Even with no other controls / code I get errors about 'sys' is undefined from IE with line numbers etc.

It seems to be from the following lines in source

//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ContentPlaceHolder1$ScriptManager1', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90);
//]]>

Has anyone managed to get Accordion working with Content Place Holder and if so what am I doing wrong. I can get it workig with just a default.aspx type page.

thanks

Trev

The sample website uses a master page. So the accordiondemo shows the usage of the control inside a content placeholder. Check it out the accordion.aspx demo page code for more details. You can download the code for the toolkit which includes the sample website from thecodeplex site.

Thanks

I rebuilt the default.aspx file and it seemed to cure the problem. Now I just have the problem of Contant place holder not sizing correctly

thanks again

No comments:

Post a Comment