protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { Label lk = (Label)DataList1.FindControl("APP01Label"); Session["testName"] = lk.Text; ClientScript.RegisterStartupScript(this.GetType(), "myalert", "alert('" + Session["testName"].ToString() + "');", true); }
Session["testName"] = lk.Text
APP01Label
if( lk != null ){ Session["testName"] = lk.Text; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)