2012-07-19 47 views
3

Iam在mopc framework中的nopcommerce2.2項目中工作。我想在aspx頁面中獲取當前客戶ID。我可以在nopcommerce2.2中獲得當前客戶信息嗎?在nopcommerce2.2中獲取當前客戶

+1

在ASPX頁面?你什麼意思?看看WebWorkContext。 – 2012-08-07 11:59:57

回答

1

使用new WebWorkContext().CurrentCustomer

0

將IWebHelper的依賴項添加到您的構造函數中,並使用CurrentCustomer屬性。