如下为c#代码
protected void Button2_Click(object sender, EventArgs e){System.Web.UI.WebControls.Button btn = sender as System.Web.UI.WebControls.Button;if (btn != null){//string title = mandArgument.ToString();ClsCmntModel clsCmnt = new ClsCmntModel();DataListItem item = btn.NamingContainer as DataListItem;if (item != null){//find the Label and get the text:Label lb3 = item.FindControl("Label3") as Label;Label lb2 = item.FindControl("Label2") as Label;System.Web.UI.HtmlControls.HtmlInputText txt2 = (System.Web.UI.HtmlControls.HtmlInputText)item.FindControl("Text1");string id = lb3.Text;string value = txt2.Value;