an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Problem adding a block to a new page
Last Post 10/9/2008 9:18:52 PM By lukezy. 4 replies.
10/8/2008 5:07:43 PM
jhcorey
Posts: 27
Joined: 9/29/2008
Problem adding a block to a new page
I've created a control and made inserts to the two tables that are mentioned in another thread.
 
But I get this exception:
The file '/web/Controls/Blocks/UpdateProducts.ascx' does not exist.
 
at the first if statement in <font color="#2b91af" size="2">Controls_Blocks_BlockContainer.AddBlockToContainer.
 
The ascx file is at the path shown (right after SiteMapPath.ascx).
 
Any thoughts?
10/8/2008 5:27:05 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Problem adding a block to a new page
Did you use the relative path e.g. /Controls/Blocks/UpdateProducts.ascx when inserting to table dbo.DSC_Block_Type_lkp?
DotShoppingCart Staff
10/9/2008 5:49:13 AM
jhcorey
Posts: 27
Joined: 9/29/2008
Re: Problem adding a block to a new page
I used
 
/Controls/Blocks/UpdateProducts.ascx
 
Which is similar to what is in the table for Search.  I'm able to add the Search and ProductList.
I'll debug a bit.
 
Also, is there a way to remove blocks from a page?
10/9/2008 6:59:11 AM
jhcorey
Posts: 27
Joined: 9/29/2008
Re: Problem adding a block to a new page
Oops.  My bad.  I've got a wrong name in the table.
But I still have the question about removing controls from the blocks.
10/9/2008 9:18:52 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Problem adding a block to a new page
Enabled page editor and click the cross icon (see below). If you are using the Open Source Edition, hook over mouse to the block header and you will find the drop down menu. Click "Delete".
 
DotShoppingCart Staff