文章轉載自網路 Success and Failure of e-commerce E-commerce has evolved since the late 1990s. Companies and individuals have been using e-commerce to do business; furthermore, it allows people to do shopping online. Many have succeeded, and many have failed as well. Let us now look at the reasons for the success and failure. 10 reasons for successful e-commerce EC 十大勝算 1)Target the Un-Targeted 找到競爭者沒看到的客戶需求。 Know your customers thoroughly Target needs that are unseen by your competitors. 2)Strong Business Planning 強而有力的業務計畫:掌握收入來源與策略細節。搞定想達到的目標。一步一步前進。 Know your source of revenue, break-even and the strategic details Decide on the future goals that you want to achieve 3)Business Friendly Ecommerce Software 有簡單好用的軟體。 Choose software that is easy to manage and allows you to focus on core business activities 4) Create a Web Store with a Difference 品牌的建立非常重要。創造有吸引力的區塊名,建立不一樣的網路商店。 Branding is important for the success of your online business Attractive domain name can play an important r...
許多 Web 應用程式都需要使用者登入,再授權讓使用者存取受限制的內容。在某些應用程式中,對於登入使用者也可能會限制可檢視的內容或可編輯的欄位。 若要限制對 ASP.NET MVC 檢視的存取,您可以限制存取呈現檢視的動作方法。為了達成此目的, MVC 架構提供了 AuthorizeAttribute 類別。 基本上, MSDN 只有這篇 AuthorizeAttribute 類別 http://msdn.microsoft.com/zh-tw/library/system.web.mvc.authorizeattribute.aspx 還有這篇:「 ASP.NET MVC 應用程式中的動作篩選」有提到 http://msdn.microsoft.com/zh-tw/library/dd410209.aspx MSDN 範例如下,雖然使用方式很簡單,但是初學者應該會有很多疑惑;例如: 1. 掛上 [Authorize] 屬性,就可以限制使用者了嗎? 2. [ Authorize (Users = "Betty, Johnny" )] 可以用來限制特定使用,那使用者身分如何取得? 3. [ Authorize (Roles = "Admin, Super User" )] 可以用來限制角色存取,那如何給定使用者的角色身分? 4. 為何只要給字串 (Users = "Betty, Johnny" )(Roles = "Admin, Super User" ) 就有效了? 如果上述問題,對你來說,都可以回答,那基本上,你已經是很嫻熟 ASP.Net MVC AuthorizeAttribute 的機制。 public class HomeController : Controller { public ActionResult Index() { ViewData["Message"] = "Welcome to ASP.NET MVC!"; return View(); } publi...