設置按钮的commandname="test"﹐然后在private void DataList1_ItemCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e)
if (e.commandname=="test"﹐)
{
do what you want
}
if (e.commandname=="test"﹐)
{
do what you want
}
{
Label lbl=e.Item.FindControl(Label);
string str=lbl.Text.ToString();
Response.Write("<script language='javascript'>alert('"+str+"')</script>"); }
你的我试了,不行啊zhq3k(zhq3k)
没太明白你的意思,能给段代码吗?