an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > How Can I add an ASP page containing UserBlockC...
Last Post 6/29/2010 11:21:21 AM By Bahram. 4 replies.
6/29/2010 9:36:51 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
How Can I add an ASP page containing UserBlockControls
 Hi Luke,
 
How can I add custom ASP Pages to my Site. The CMS part of DSC is undocumented and Weak.
 
Bahram
6/29/2010 10:49:00 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: How Can I add an ASP page containing UserBlockControls
The suggested way is to create your custom userblockcontrols and add it to the dynamic page. Otherwise you can add custom asp page just like what you would normally do.
 
Yes, we are working on updating CMS part of documentation.
DotShoppingCart Staff
6/29/2010 10:59:39 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: How Can I add an ASP page containing UserBlockControls
 
That is how I did and still got no reply on this posting :
 
 
I copied unsubscribe.* ; then renamed modified It, but the new url is not recognized and the name is not found.
 
 
6/29/2010 11:13:35 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: How Can I add an ASP page containing UserBlockControls
Please use the original thread to continue discussion. You need to provide more detail information, error message or debug information. Just saying it's not working won't help us to understand your issue.
DotShoppingCart Staff
6/29/2010 11:21:21 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: How Can I add an ASP page containing UserBlockControls
 
1- I have copied Unsubscribe.ascx to a new file in the same folder called UnsubscribeCrm.ascx
 
2-  I added this code (from MSDN) to page load  to parametrize the asp page  
 
 
            System.Text.StringBuilder displayValues =
            new System.Text.StringBuilder();
            System.Collections.Specialized.NameValueCollection
                postedValues = Request.Form;
            String nextKey;
            for (int i = 0; i < postedValues.AllKeys.Length; i++)
            {
                nextKey = postedValues.AllKeys[i];
                if (nextKey.Substring(0, 2) != "__")
                {
                    displayValues.Append("<br>");
                    displayValues.Append(nextKey);
                    displayValues.Append(" = ");
                    displayValues.Append(postedValues[i]);
                }
            }
 
3- Then I will call my page as
 
4- I got this message :

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /eStore/UnsubscribeCrm.aspx