HtmlGenericControl hgc = new HtmlGenericControl("div");
                    hgc.Attributes.Add("height", "50px");
                    hgc.Style.Add("width", "160px");
                    hgc.Controls.Add(image);
                    hgc.Controls.Add(lab2);
                    hgc.Controls.Add(lab3);
                    hgc.Attributes.Add("onclick", "selectUser('" + friend.Name + "')");
                    ap.ContentContainer.Controls.Add(hgc);
posted on 2009-10-03 06:01  freedom831215  阅读(184)  评论(0)    收藏  举报