an ASP.NET Open Source CMS & eCommerce platform
Skip Navigation LinksHome > DotShoppingCart Blog
DotShoppingCart Blog
Add a custom ASP.NET UserControl into the DotShoppingCart (V2.5+)
There was an old blog entry talking about adding custom ASP.Net user control to DotShoppingCart. From DotShoppingCart V2.5 the page editor has been rewritten by using JQuery. As the result the way to integrate the custom ASP.NET user control is simplified.
1) Create a Standard ASP.NET stardard User Control and derive it from BlockUserControl
Check "Web/View/Blocks/TagCloud.ascx.cs" for the example.
using DotShoppingCart.Commercial.Core;
public partial class View_Blocks_TagCloud : BlockUserControl {
2) Hook up the new block type in DB
    a) Insert a new entry to dbo.DSC_Block_Type_lkp table
e.g. INSERT INTO DSC_Block_Type_lkp (type, virtualPath) VALUES ('My Block', '/Controls/Blocks/MyBlock.ascx')
    b) Insert a new entry to dbo.DSC_Block_Type_Group_Block_Type_Map
e.g. INSERT INTO DSC_Block_Type_Group_Block_Type_Map (BlockTypeGroupId, BlockTypeId, SortOrder) VALUES (3, <id that is created in step a>, 10)
To add your custom user control to page, just enable page edior and click "+" sign. Find the custom block in the proper group (which you add in the step b above).
New features in V2.6
Product bulk import is the major feature in V2.6. Now you can work on the products offline and then import it into store admin easily. Several admin UI interfaces have been cleaned up and made consistent throughout the admin site. There are also several other admin improvements including File Management and user ghost feature.
Recent Comments
danny jones said ...
Hi... I am inexperiance to build up ECommenrce type sites.I have a little bits knowladge ...
molakaj said ...
What a great approach to the subject, I was looking for. Thanks for these tips http://www ...
jane said ...
Thank you for this useful information.
furnace parts said ...
Congrats on V4.0.....It is so easy to use  
Travis said ...
I just bought DSC Suite V4.5 and it is more solid then ever. I hope I am #1 buyer of this ...