Example #1
0
 static ElementBuilder CreateInput(string type, string name, string value)
 {
     ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.a);
     e.AddAttribute("type", type);
     e.AddAttribute("name", name);
     e.AddContent(value);
     return e;
 }
Example #2
0
        static ElementBuilder CreateURL(string url, string title, string text)
        {

            ElementBuilder e = new ElementBuilder(ElementBuilder.HTMLTag.a);
            e.AddAttribute("href", url);
            e.AddAttribute("title", title);
            e.AddContent(text);
            return e;
        }