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 MohapatraPosted Aug 31, 2016, 5:01 AM
- 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 PPosted Sep 1, 2016, 2:17 AM