Esempio n. 1
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.ToString());
        }
Esempio n. 2
0
        public static string CreateImage(string source, string alt, string title)
        {
            ElementBuilder img = new ElementBuilder("img");

            img.AddAttribute("src", source);
            img.AddAttribute("alt", alt);
            img.AddAttribute("title", title);

            return(img.ToString());
        }
Esempio n. 3
0
        public static string CreateURL(string url, string title, string text)
        {
            ElementBuilder a = new ElementBuilder("a");

            a.AddAttribute("href", url);
            a.AddAttribute("title", title);
            a.AddContent(text);

            return(a.ToString());
        }