an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Development > DotShoppingCart OpenSource Core > Problem when adding place holder to user control
Last Post 4/23/2009 6:15:26 PM By stevendox. 1 replies.
4/23/2009 1:49:10 AM
stevendox
Posts: 2
Joined: 4/23/2009
Problem when adding place holder to user control
I created a user control and added to a page using DSC CMS feature.
Now I add a <BlockContainer/> to the user control and add a record to the table DSC_Block with data value "<BlockContainerData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Content>%%PlaceHolder1%%</Content></BlockContainerData>".
I also bind this value to the <BlockContainer/> control on the Load event.
 
Now when logging in as an admin, I see the <BlockContainer/> with a plus sign.
I click the sign and a dia log appears for selecting a block, I choose a block then click Add button, but the dialog stands still, nothing happens.
Why?
When I do the same thing (adding <BlockContainer/>) to a new .aspx page, thing goes well.
Can this problem be solved?
4/23/2009 6:15:26 PM
stevendox
Posts: 2
Joined: 4/23/2009
Re: Problem when adding place holder to user control
Well, that's my fault.
Since I copy/paste HTML from design team's prototype which contains <form/> tag while my master page already contains a bound <form/> tag.
The <BlockContainer/> control works well in a user control.
Sorry.