예제 #1
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");
     }
 }
예제 #2
0
 protected void sandbox_invoke_add_remove_same_onclick(p5.Literal literal, EventArgs e)
 {
     literal ["class"] = "mumbo-jumbo";
     literal.DeleteAttribute("class");
 }
예제 #3
0
 protected void sandbox_invoke_add_remove_2_onclick(p5.Literal literal, EventArgs e)
 {
     literal.DeleteAttribute("class");
 }