摘要:
第一种(可以拿到url的controller名):微软已经提供了 非常方便的方法为什么 还要绕远路呢?ViewContext.RouteData.Route.GetRouteData(this.Context).Values["controller"]ViewContext.RouteData.Route.GetRouteData(this.Context).Values["action"]第二种:ViewContext.RouteData.Values["controller"]如果以上代码在.ascx中<%:this.Htm 阅读全文
随笔档案-2011年08月
href 不支持 this
2011-08-19 12:38 by 蜡笔小旧, 329 阅读, 收藏, 编辑
摘要:
<a href="javascript:delRow(this);" onclick="javascript:delRow(this);">href 不支持 this 阅读全文