A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class BaseStoreUserControl

Base class for all user controls in the CMS System. Adds additional properties which are common for website project but not available for web application projects.

Inheritance
System.Object
BaseStoreUserControl
Namespace: Mediachase.Commerce.Website.BaseControls
Assembly: Mediachase.Commerce.Website.dll
Version: 10.8.0
Syntax
public class BaseStoreUserControl : UserControl

Constructors

BaseStoreUserControl()

Initializes a new instance of the UserControlBase class.

Declaration
public BaseStoreUserControl()

Properties

Market

Declaration
public IMarket Market { get; }
Property Value
Type Description
IMarket

PricingService

Declaration
public IPriceService PricingService { get; }
Property Value
Type Description
IPriceService

Profile

Gets the profile.

Declaration
public CustomerProfileWrapper Profile { get; }
Property Value
Type Description
CustomerProfileWrapper

The profile.

RM

Gets the RM.

Declaration
public StoreResourceManager RM { get; }
Property Value
Type Description
StoreResourceManager

The RM.

Methods

ResolveUrl(String)

Converts a URL into one that is usable on the requesting client.

Declaration
public string ResolveUrl(string relativeUrl)
Parameters
Type Name Description
System.String relativeUrl

The URL associated with the System.Web.UI.Control.TemplateSourceDirectory property.

Returns
Type Description
System.String

The converted URL.

Exceptions
Type Condition
System.ArgumentNullException

Occurs if the relativeUrl parameter contains null.