Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
        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>";
        }
Exemplo n.º 3
0
 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");
     }
 }
Exemplo n.º 4
0
 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?";
     }
 }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 protected void sandbox_invoke_change_twice_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] = "mumbo";
     literal ["class"] = "jumbo";
 }
Exemplo n.º 7
0
        protected void btn2_onclick(p5.Literal literal, EventArgs e)
        {
            txt.innerValue = @"Howdy world
foo bar!";
        }
Exemplo n.º 8
0
 protected void element_onclick(p5.Literal literal, EventArgs e)
 {
     literal.innerValue = "This is the updated text";
 }
Exemplo n.º 9
0
 protected void sandbox_invoke_add_remove_same_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] = "mumbo-jumbo";
     literal.DeleteAttribute("class");
 }
Exemplo n.º 10
0
 protected void sandbox_invoke_change_container_child_child_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] += "bar";
 }
Exemplo n.º 11
0
 protected void sandbox_invoke_create_concatenate_long_attribute_2_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] += "abcdefghijklmnopqrstuvwxyz";
 }
Exemplo n.º 12
0
 protected void sandbox_invoke_create_concatenate_long_attribute_1_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] = "x1234567890";
 }
Exemplo n.º 13
0
 protected void sandbox_invoke_concatenate_long_attribute_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] += "qwerty";
 }
Exemplo n.º 14
0
 protected void sandbox_invoke_remove_add_markup_attribute_2_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] = "bar";
 }
Exemplo n.º 15
0
 protected void sandbox_invoke_change_markup_attribute_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] = "bar";
 }
Exemplo n.º 16
0
 protected void sandbox_invoke_add_remove_1_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] = "new value 1";
 }
Exemplo n.º 17
0
 protected void sandbox_invoke_add_remove_2_onclick(p5.Literal literal, EventArgs e)
 {
     literal.DeleteAttribute("class");
 }
Exemplo n.º 18
0
 protected void sandbox_invoke_exception_onclick(p5.Literal literal, EventArgs e)
 {
     throw new ApplicationException("this is an intentional error");
 }
Exemplo n.º 19
0
 public void foo_onclick(p5.Literal sender, EventArgs args)
 {
     sender.innerValue = "Hello World from Managed Ajax!";
 }
Exemplo n.º 20
0
 //[WebMethod] intentionally commented out
 protected void sandbox_invoke_no_webmethod_onclick(p5.Literal literal, EventArgs e)
 {
 }
Exemplo n.º 21
0
 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");
 }
Exemplo n.º 22
0
 protected void sandbox_invoke_normal_onclick(p5.Literal literal, EventArgs e)
 {
 }
Exemplo n.º 23
0
        protected void btn_onclick(p5.Literal literal, EventArgs e)
        {
            txt.innerValue += @"
Howdy world!";
        }
Exemplo n.º 24
0
 protected void sandbox_invoke_multiple_onclick(p5.Literal literal, EventArgs e)
 {
     literal.innerValue += "x";
     Thread.Sleep(100);
 }
Exemplo n.º 25
0
 protected void sandbox_invoke_javascript_onclick(p5.Literal literal, EventArgs e)
 {
     literal.innerValue = Page.Request.Params ["mumbo"] + " jumbo";
 }
Exemplo n.º 26
0
 protected void sandbox_invoke_change_content_onclick(p5.Literal literal, EventArgs e)
 {
     literal.innerValue = "new value";
 }
Exemplo n.º 27
0
 protected void myBtn2_onclick(p5.Literal sender, EventArgs e)
 {
     Container2["value"] = "Option2";
 }
Exemplo n.º 28
0
 protected void sandbox_invoke_change_two_properties_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"]  = "new value 1";
     literal.innerValue = "new value 2";
 }
Exemplo n.º 29
0
 protected void element_onclick(p5.Literal literal, EventArgs e)
 {
     literal.innerValue = "Widget was clicked";
 }
Exemplo n.º 30
0
 public void bar_onclick(p5.Literal sender, EventArgs args)
 {
     sender.innerValue = "Hello World from Managed Ajax in Master page!";
 }