Is it Possible to create Non-editable ASP.NET MVC Layout?
I need to know whether it is possible to create a non-editable layout in a asp.net mvc project ? My idea is to develop a project by creating a user defined layout and i will provide it to my developers,here my aim is they couldn't able to update or modify the layout.I wanna know whether there is any way to create like dll or something like that.


Manas MohapatraRank #182 · 13.2K reputationPosted Aug 31, 2016, 1:01 AM EDT
- public static class LoginStatusControl
- {
- public static MvcHtmlString LoginStatus(this HtmlHelper htmlHelper, string CssClass)
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("
- if (System.Web.HttpContext.Current.User.Identity.IsAuthenticated)
- {
- sb.Append("Hello ");
- sb.Append(System.Web.HttpContext.Current.User.Identity.Name );
- sb.Append("!");
- }
- else
- {
- sb.Append("Welcome");
- }
-
- sb.Append("
");+ CssClass + "'>");
Manojkumar P21 reputationPosted Aug 31, 2016, 10:17 PM EDT