Ejemplo n.º 1
0
 public static string CreateURL(string url, string title, string text)
 {
     ElementBuilder link = new ElementBuilder("a");
     link.AddAttribute("href", url);
     link.AddAttribute("title", title);
     link.AddContent(text);
     return link.Result(true);
 }
Ejemplo n.º 2
0
 public static string CreateInput(string inputType, string name, string value)
 {
     ElementBuilder input = new ElementBuilder("input");
     input.AddAttribute("type", inputType);
     input.AddAttribute("name", name);
     input.AddAttribute("value", value);
     return input.Result(false);
 }
Ejemplo n.º 3
0
 public static string CreateImage(string imageSource, string alt, string title)
 {
     ElementBuilder image = new ElementBuilder("img");
     image.AddAttribute("src", imageSource);
     image.AddAttribute("alt", alt);
     image.AddAttribute("title", title);
     return image.Result(false);
 }