using System.Globalization;
using System.Web.UI;
using Resources;
using mojoPortal.Web;
namespace WebStore.UI.Controls{
public partial class CartLink : UserControl
{
public int PageID = -1;
public int ModuleID = -1;
protected override void Render(HtmlTextWriter writer)
{
if (PageID == -1) { return; }
if (ModuleID == -1) { return; }
writer.Write(
string.Format(
" <a href='{0}' class='storelink'><span class='cartlink'>{1}</span></a>",
SiteUtils.GetNavigationSiteRoot() + "/WebStore/Cart.aspx?pageid="
+ PageID.ToString(CultureInfo.InvariantCulture)
+ "&mid=" + ModuleID.ToString(CultureInfo.InvariantCulture)
,
WebStoreResources.CartLink));
}
}
}
|