protected void sandbox_invoke_empty_onclick(p5.Literal literal, EventArgs e) { if (literal.ID != "sandbox_invoke_empty") { throw new ApplicationException("wrong id of element on server"); } }
protected void btn3_onclick(p5.Literal literal, EventArgs e) { txt.innerValue = @"Howdy World <strong>foo <em>THOMAS</em> sdf</strong> sdfoih sdfpih <i>TJOBING</i>"; }
protected void hello_onclick(p5.Literal sender, EventArgs e) { if (sender.innerValue == "Click me for hello world") { sender.innerValue = "Click me again, while inspecting the HTTP request using your browser"; sender ["class"] = "change-is-the-only-constant"; } else { sender.innerValue = "Click me for hello world"; sender.DeleteAttribute("class"); } }
protected void item_onclick(p5.Literal sender, EventArgs e) { if (sender.innerValue == "Are you sure?") { List.RemoveControlPersistent(sender); CurrentEdit = null; Txt["value"] = ""; } else { Txt["value"] = sender.innerValue; CurrentEdit = sender.ID; sender.innerValue = "Are you sure?"; } }
protected void myBtn_onclick(p5.Literal sender, EventArgs e) { var lit1 = Container2.CreatePersistentControl <p5.Literal> (); lit1.Element = "option"; lit1["value"] = "Option3"; lit1.innerValue = "Option 3"; lit1["selected"] = null; var lit2 = Container2.CreatePersistentControl <p5.Literal> (); lit2.Element = "option"; lit2["value"] = "Option4"; lit2.innerValue = "Option 4"; select_change(Container2, e); }
protected void sandbox_invoke_change_twice_onclick(p5.Literal literal, EventArgs e) { literal ["class"] = "mumbo"; literal ["class"] = "jumbo"; }
protected void btn2_onclick(p5.Literal literal, EventArgs e) { txt.innerValue = @"Howdy world foo bar!"; }
protected void element_onclick(p5.Literal literal, EventArgs e) { literal.innerValue = "This is the updated text"; }
protected void sandbox_invoke_add_remove_same_onclick(p5.Literal literal, EventArgs e) { literal ["class"] = "mumbo-jumbo"; literal.DeleteAttribute("class"); }
protected void sandbox_invoke_change_container_child_child_onclick(p5.Literal literal, EventArgs e) { literal ["class"] += "bar"; }
protected void sandbox_invoke_create_concatenate_long_attribute_2_onclick(p5.Literal literal, EventArgs e) { literal ["class"] += "abcdefghijklmnopqrstuvwxyz"; }
protected void sandbox_invoke_create_concatenate_long_attribute_1_onclick(p5.Literal literal, EventArgs e) { literal ["class"] = "x1234567890"; }
protected void sandbox_invoke_concatenate_long_attribute_onclick(p5.Literal literal, EventArgs e) { literal ["class"] += "qwerty"; }
protected void sandbox_invoke_remove_add_markup_attribute_2_onclick(p5.Literal literal, EventArgs e) { literal ["class"] = "bar"; }
protected void sandbox_invoke_change_markup_attribute_onclick(p5.Literal literal, EventArgs e) { literal ["class"] = "bar"; }
protected void sandbox_invoke_add_remove_1_onclick(p5.Literal literal, EventArgs e) { literal ["class"] = "new value 1"; }
protected void sandbox_invoke_add_remove_2_onclick(p5.Literal literal, EventArgs e) { literal.DeleteAttribute("class"); }
protected void sandbox_invoke_exception_onclick(p5.Literal literal, EventArgs e) { throw new ApplicationException("this is an intentional error"); }
public void foo_onclick(p5.Literal sender, EventArgs args) { sender.innerValue = "Hello World from Managed Ajax!"; }
//[WebMethod] intentionally commented out protected void sandbox_invoke_no_webmethod_onclick(p5.Literal literal, EventArgs e) { }
protected void javascript_widget_onclicked (p5.Literal literal, EventArgs e) { // Here we extract the "custom_data" pushed from our JavaScript handler on the client side, // and prepend that string to the server-time. before returning the combined results to our client again as "custom_return_value". SendObject ("custom_return_data", Page.Request.Params["custom_data"] + "Your server speaks the server-time " + DateTime.Now + ".\r\n"); }
protected void sandbox_invoke_normal_onclick(p5.Literal literal, EventArgs e) { }
protected void btn_onclick(p5.Literal literal, EventArgs e) { txt.innerValue += @" Howdy world!"; }
protected void sandbox_invoke_multiple_onclick(p5.Literal literal, EventArgs e) { literal.innerValue += "x"; Thread.Sleep(100); }
protected void sandbox_invoke_javascript_onclick(p5.Literal literal, EventArgs e) { literal.innerValue = Page.Request.Params ["mumbo"] + " jumbo"; }
protected void sandbox_invoke_change_content_onclick(p5.Literal literal, EventArgs e) { literal.innerValue = "new value"; }
protected void myBtn2_onclick(p5.Literal sender, EventArgs e) { Container2["value"] = "Option2"; }
protected void sandbox_invoke_change_two_properties_onclick(p5.Literal literal, EventArgs e) { literal ["class"] = "new value 1"; literal.innerValue = "new value 2"; }
protected void element_onclick(p5.Literal literal, EventArgs e) { literal.innerValue = "Widget was clicked"; }
public void bar_onclick(p5.Literal sender, EventArgs args) { sender.innerValue = "Hello World from Managed Ajax in Master page!"; }