Calling Webpage Content from Master Page

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Calling Webpage Content from Master Page

Post by gdelorey@mitcs.com » Wed Jan 27, 2016 1:58 pm

Sorry for what I think is going to be a dumb question - I'd like to be able to have a client manage content via Admin > Website > Webpages and have that content populate in my Checkout.Master page. This will be used to update shipping information from time to time that is currently hard-coded into the master page. What is the proper syntax for calling in webpage content from master pages (and/or .aspx pages)?

Thanks!

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Calling Webpage Content from Master Page

Post by jmestep » Thu Jan 28, 2016 1:52 am

Here is a sample of how I do it:

Code: Select all

  Webpage storage = WebpageDataSource.Load(_Filter1Webpage);
            if (storage != null)
            {
                _Filter1OrderStatusIds = storage.Summary.Trim();
            }
Newer versions of Gold do it in the ConLib/CustomHTML like the following. You pass a parameter WebPageId when you call the conlib

Code: Select all

 if (_WebPageId > 0) _Webpage = WebpageDataSource.Load(_WebPageId);
            if (_Webpage != null && !string.IsNullOrEmpty(_Webpage.Description))
            {
                CustomHTMLPanel.Controls.Clear();
                CustomHTMLPanel.Controls.Add(new LiteralControl(_Webpage.Description));
            }
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: Calling Webpage Content from Master Page

Post by gdelorey@mitcs.com » Thu Jan 28, 2016 7:28 am

Hi Judy -

Thanks for your help, worked like a charm!

Greg

Post Reply