LinkButton lb = new LinkButton(); lb.Text = MM.GetComeName(id).Tables[0].Rows[i]["CName"].ToString(); lb.PostBackUrl = "~/Chat.aspx?name="+lb.Text.Trim()+"&uid="+id; AccordionPane.Controls.Add(lb);
直接拼出一个超链接字符串吧