umbraco note-MVC
来源:互联网 发布:php 转发http请求 编辑:程序博客网 时间:2024/06/11 19:08
SurfaceController
1.Creating an action to partake in a Child Action Macro. To define this is very simple and follows
the exact same MVC principles to creating a Child Action...just add a ChildActionOnlyAttribute to youraction method.
[ChildActionOnly]
public ActionResult DisplayTwitterFeed()
2.Creating a child action to simply be used as a normal MVC child action which get rendered using
@Html.Action or @Html.RenderAction.
3.Create an action to handle some posted form data:
[httpPost]
public ActionResult HandleMyFormSubmission(MyFormModel model)
4.Maybe you'd like to track all links clicked on your page. you could use jquery to update all of your
links on your page to point to your custom action URL with the real URL as a query string. Then your
custom action will log the real link address and redirect the user to where they want to go.
--------------------------------------------------------------------------------------
// e.g. if modelstate is invalid
return CurrentUmbracoPage();
// redirecting back to original page after a successful post
return RedirectToCurrentUmbracoPage();
// Redirecting to another page after a successful post
return RedirectToUmbracoPage(12345)
0 0
- umbraco note-MVC
- umbraco mvc角度看问题
- Umbraco Dynamic
- <Professional ASP.NET MVC 5> - Note 01
- <Professional ASP.NET MVC 5> - Note 02
- Umbraco 7.4.3 安装图解【Umbraco教程】
- Understanding umbraco's "currentPage"
- umbraco的安装
- umbraco学习1: 安装
- umbraco学习3:Template
- umbraco学习4:Stylesheets
- umbraco学习5:Macros
- umbraco学习7:调试
- umbraco学习9:XSLT
- Umbraco版本升级
- Umbraco学习笔记
- note
- note
- Eclipse代码注释和取消注释快捷键
- Stackoverflow问答:Java是传值还是传引用?
- UNIX中后台进程与守护进程
- ajax联动
- 需求:解压获取ipa里面的图片在windows系统上打不开
- umbraco note-MVC
- iOS内存管理浅析
- 多线程负载均衡
- 关于java反射的总结
- 东岳机床移动网站建设
- shiro 权限认证的原理,个人的理解
- 关于li标签的value属性在ie浏览器下只能保存数值型数据的解决方法
- 云数据库在网易的发展与实践
- string::size_type 用的不错