public AjaxContinuation post_ajax(AjaxModel user) { var continuation = AjaxContinuation.Successful(); continuation.Message = "User created: " + user.Name; return continuation; }
public FubuHtmlDocument<AjaxModel> get_ajax(AjaxModel request) { _page.Add(new HtmlTag("h1").Text("Ajax Form")); _page.Asset("ajaxTester.js"); _page.Add(createForm()); _page.Add(new LiteralTag(_page.EndForm().ToString())); _page.Add(_page.WriteScriptTags()); return _page; }