Button btn_remove = new Button(); string btn_id = i.ToString(); btn_remove.ID = btn_id; btn_remove.CssClass = "btn"; btn_remove.Text = "remove"; PlaceHolder1.Controls.Add(btn_remove); btn_remove.Click += new EventHandler(this.btn_remove_Click); //btn_remove.Attributes.Add("OnClientClick", "javascript :return remov_elem();"); btn_remove.Attributes.Add("onClick", "javascript:return false");
function remov_elem() { alert("bhargav"); return false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)