Microsoft.Web.Mvc Assembly 说明
来源:互联网 发布:mac os x lion 升级 编辑:程序博客网 时间:2024/04/29 01:47
IHtmlElement
A Html Element's Interface.
Html标签的一个接口规范。 C#:
public interface IHtmlElement
{
// Properties
IDictionary<string, string> Attributes { get; }
string InnerHtml { get; set; }
string TagName { get; }
}
{
// Properties
IDictionary<string, string> Attributes { get; }
string InnerHtml { get; set; }
string TagName { get; }
}
ButtonBuilder
To Builter a Button HTML tag with some attr.
用一些属性来构造Button的Html标签的构造器。
C#:
public static class ButtonBuilder
{
// Methods
public static IHtmlElement Button(string name, string buttonText, string onClickMethod, IDictionary<string, object> htmlAttributes);
public static IHtmlElement SubmitButton(string name, string buttonText, IDictionary<string, object> htmlAttributes);
public static IHtmlElement SubmitImage(string name, string sourceUrl, IDictionary<string, object> htmlAttributes);
}
{
// Methods
public static IHtmlElement Button(string name, string buttonText, string onClickMethod, IDictionary<string, object> htmlAttributes);
public static IHtmlElement SubmitButton(string name, string buttonText, IDictionary<string, object> htmlAttributes);
public static IHtmlElement SubmitImage(string name, string sourceUrl, IDictionary<string, object> htmlAttributes);
}
RequireHttpMethodAttribute
Base Class:ActionFilterAttribute
可以批量设置可用的Action的列表。
[RequireHttpMethod("index","about")]
public class HomeController{}
public class HomeController{}
则只有home/index与home/about是可以访问的。
ViewExtensions
HtmlHelper及ViewPage的扩展
增加了RenderAction及RenderRoute的扩展
定义
public static class ViewExtensions
{
// Methods
public static void RenderAction<TController>(this HtmlHelper helper, Expression<Action<TController>> action) where TController: Controller;
public static void RenderAction(this HtmlHelper helper, string actionName);
public static void RenderAction(this HtmlHelper helper, string actionName, string controllerName);
public static void RenderAction(this HtmlHelper helper, string actionName, string controllerName, object values);
public static void RenderAction(this HtmlHelper helper, string actionName, string controllerName, RouteValueDictionary values);
public static void RenderRoute(this HtmlHelper helper, RouteValueDictionary values);
}
{
// Methods
public static void RenderAction<TController>(this HtmlHelper helper, Expression<Action<TController>> action) where TController: Controller;
public static void RenderAction(this HtmlHelper helper, string actionName);
public static void RenderAction(this HtmlHelper helper, string actionName, string controllerName);
public static void RenderAction(this HtmlHelper helper, string actionName, string controllerName, object values);
public static void RenderAction(this HtmlHelper helper, string actionName, string controllerName, RouteValueDictionary values);
public static void RenderRoute(this HtmlHelper helper, RouteValueDictionary values);
}
使用方法:
<%=Html.RenderUserControl("~/views/user/index-account.ascx", ViewData.Model)%>
MailToExtensions
增加了HtmlHelper的MailTo方法:
可以支持默认的转发及设置标题内容
public static class MailToExtensions
{
// Methods
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, IDictionary<string, object> htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, object htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, IDictionary<string, object> htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, object htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, string body, string cc, string bcc, IDictionary<string, object> htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, string body, string cc, string bcc, object htmlAttributes);
}
{
// Methods
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, IDictionary<string, object> htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, object htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, IDictionary<string, object> htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, object htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, string body, string cc, string bcc, IDictionary<string, object> htmlAttributes);
public static string Mailto(this HtmlHelper helper, string linkText, string emailAddress, string subject, string body, string cc, string bcc, object htmlAttributes);
}
ImageExtensions
HtmlHelepr的图片显示扩展:
public static class ImageExtensions
{
// Methods
public static string Image(this HtmlHelper helper, string imageRelativeUrl);
public static IHtmlElement Image(string imageUrl, string alt, IDictionary<string, object> htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, IDictionary<string, object> htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, object htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, string alt);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, string alt, IDictionary<string, object> htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, string alt, object htmlAttributes);
}
{
// Methods
public static string Image(this HtmlHelper helper, string imageRelativeUrl);
public static IHtmlElement Image(string imageUrl, string alt, IDictionary<string, object> htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, IDictionary<string, object> htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, object htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, string alt);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, string alt, IDictionary<string, object> htmlAttributes);
public static string Image(this HtmlHelper helper, string imageRelativeUrl, string alt, object htmlAttributes);
}
ButtonsAndLinkExtensions
HtmlHelper的扩展
增加了Button,SubmitButton,SubmitButton的支持
public static class ButtonsAndLinkExtensions
{
// Methods
public static string Button(this HtmlHelper helper, string name, string buttonText, string onClickMethod);
public static string Button(this HtmlHelper helper, string name, string buttonText, string onClickMethod, IDictionary<string, object> htmlAttributes);
public static string Button(this HtmlHelper helper, string name, string buttonText, string onClickMethod, object htmlAttributes);
public static string SubmitButton(this HtmlHelper helper);
public static string SubmitButton(this HtmlHelper helper, string name);
public static string SubmitButton(this HtmlHelper helper, string name, string buttonText);
public static string SubmitButton(this HtmlHelper helper, string name, string buttonText, IDictionary<string, object> htmlAttributes);
public static string SubmitButton(this HtmlHelper helper, string name, string buttonText, object htmlAttributes);
public static string SubmitImage(this HtmlHelper helper, string name, string imageSrc);
public static string SubmitImage(this HtmlHelper helper, string name, string imageSrc, IDictionary<string, object> htmlAttributes);
public static string SubmitImage(this HtmlHelper helper, string name, string imageSrc, object htmlAttributes);
}
{
// Methods
public static string Button(this HtmlHelper helper, string name, string buttonText, string onClickMethod);
public static string Button(this HtmlHelper helper, string name, string buttonText, string onClickMethod, IDictionary<string, object> htmlAttributes);
public static string Button(this HtmlHelper helper, string name, string buttonText, string onClickMethod, object htmlAttributes);
public static string SubmitButton(this HtmlHelper helper);
public static string SubmitButton(this HtmlHelper helper, string name);
public static string SubmitButton(this HtmlHelper helper, string name, string buttonText);
public static string SubmitButton(this HtmlHelper helper, string name, string buttonText, IDictionary<string, object> htmlAttributes);
public static string SubmitButton(this HtmlHelper helper, string name, string buttonText, object htmlAttributes);
public static string SubmitImage(this HtmlHelper helper, string name, string imageSrc);
public static string SubmitImage(this HtmlHelper helper, string name, string imageSrc, IDictionary<string, object> htmlAttributes);
public static string SubmitImage(this HtmlHelper helper, string name, string imageSrc, object htmlAttributes);
}
Wiki:http://www.eice.com.cn/Microsoft_Web_Mvc.ashx
- Microsoft.Web.Mvc Assembly 说明
- Could not load file or assembly Microsoft.Web.Infrastructure
- could not load file or assembly "System.Web.Mvc...
- .net framework 4.0 mvc 应用部署 System.Web.Mvc 错误 Could not load file or assembly 'System.Web.Mvc
- .net framework 4.0 mvc 应用部署 System.Web.Mvc 错误 Could not load file or assembly 'System.Web.Mvc .
- assembly的说明
- Assembly简单说明
- C# Assembly说明
- could not load file or assembly 'system.web.mvc version=1.0.0.0'
- Microsoft Visual Studio 2010 新建和运行 mvc web应用程序
- Microsoft Web Application Stress Tool(WAST)详细设置说明
- Assembly(c#中简单说明
- Assembly(c#中简单说明)
- C#反射Assembly 详细说明
- Assembly(c#中简单说明)
- C#反射Assembly 详细说明
- C#反射Assembly 详细说明
- Assembly(c#中简单说明
- Asp.net MVC Preview 4 中使用RenderComponent
- java中的URLEncoder和URLDecoder类
- Asp.net Mvc Pv4中使用AjaxHelper
- ASP.NET MVC CodePlex Preview 4 Installer + Source + Changed
- 戏说社会现状,太有才了~
- Microsoft.Web.Mvc Assembly 说明
- System.Web.Routing 的说明文档
- Asp.net Mvc Codeplex Preview 5 第一篇 Helper的新特性
- Asp.net Mvc Codeplex Preview 5 第二篇 Controller&Filter的新特性
- 爽死了
- C
- JavaMail无法连接SMTP25端口问题
- Asp.net Mvc Codeplex Preview 5 第三篇 实现Action参数传递繁杂类型
- plsql常用函数