Пример #1
0
        protected void add_ctrl(p5.ajax.widgets.Literal sender, EventArgs e)
        {
            sender.innerValue = "Hello World!";
            sender ["style"]  = "background-color:LightBlue;";

            var lit = mainCtr.CreatePersistentControl <p5.ajax.widgets.Literal> ();

            lit.Element     = "li";
            lit ["class"]   = "some-class-value";
            lit.innerValue  = "Item no; " + mainCtr.Controls.Count;
            lit ["onclick"] = "ctrl_clicked";
        }
Пример #2
0
 protected void ctrl_clicked(p5.ajax.widgets.Literal sender, EventArgs e)
 {
     sender.innerValue = "I was clicked";
 }