Go to the documentation of this file.00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using System.Web.Mvc;
00006
00007 namespace N2.Web.Mvc.Html
00008 {
00009 public static class TagBuilderExtensions
00010 {
00011 public static TagBuilder Html(this TagBuilder builder, string html)
00012 {
00013 builder.InnerHtml = html;
00014 return builder;
00015 }
00016 public static TagBuilder Id(this TagBuilder builder, string id)
00017 {
00018 builder.Attr("id", id);
00019 return builder;
00020 }
00021 public static TagBuilder Attr(this TagBuilder builder, string name, string value)
00022 {
00023 builder.Attributes[name] = value;
00024 return builder;
00025 }
00026 }
00027 }