MVC用filter使用
摘要:MVC用filter做权限过滤: 1:创建filter类;类需要继承一个接口,并且重写4个方法;如下:namespace MvcApplication1.Code{ public class paramFilter:System.Web.Mvc.ActionFilterAttribute { pub
阅读全文
posted @
2012-07-26 15:11
张扬个性,敢为天下先
阅读(2901)
推荐(2)
zTree异步调用
摘要:前台代码<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script src="/scripts/Ztree/script/jquery-1.4.2.js" type="text/javascript"></script> <link href="/scripts/Ztree/style/zTreeStyle/zT
阅读全文
posted @
2012-07-26 11:22
张扬个性,敢为天下先
阅读(6919)
推荐(1)
ActionLink使用
摘要:一 Html.ActionLink("linkText","actionName") 该重载的第一个参数是该链接要显示的文字,第二个参数是对应的控制器的方法,默认控制器为当前页面的控制器,如果当前页面的控制器为Products,则 Html.ActionLink("detail","Detail")
阅读全文
posted @
2012-07-24 15:00
张扬个性,敢为天下先
阅读(433)
推荐(0)
ViewData的使用
摘要://Controller public ActionResult Index() { ViewData["Message"] = "欢迎使用 ASP.NET MVC!"; List list= new List(); list.Add("test1"); list....
阅读全文
posted @
2012-07-24 14:43
张扬个性,敢为天下先
阅读(6938)
推荐(1)