public static Element[] CreateDateTimeField() { var label = new LabelElement { HtmlFor = "dateTimeInput", InnerHTML = "Server Date and Time:" }; var div = new DivElement { ClassName = "input-group" }; var spanPrefix = new SpanElement { ClassName = "input-group-addon glyphicon glyphicon-time" }; var spanSuffix = new SpanElement { ClassName = "input-group-btn" }; var button = new ButtonElement { Type = ButtonType.Button, ClassName = "btn btn-primary", InnerHTML = "<span class=\"glyphicon glyphicon-refresh\"></span>", OnClick = Html5App.UpdateButton_Click }; var input = new InputElement { Id = "dateTimeInput", Type = InputType.Text, ClassName = "form-control", Placeholder = "Click update...", ReadOnly = true, Name = "datetime" }; spanSuffix.AppendChild(button); div.AppendChild(spanPrefix); div.AppendChild(input); div.AppendChild(spanSuffix); return new Element[] { label, div }; }