K
Kiran More
WebControl button = (WebControl)Page.FindControl("btn_Delete");
button.Attributes.Add("onclick", "return confirmDelete (this.form);");
confirmDelete is the method written in Javascript.
I am getting following error message as,
Object reference not set to an instance of an object.
button.Attributes.Add("onclick", "return confirmDelete (this.form);");
confirmDelete is the method written in Javascript.
I am getting following error message as,
Object reference not set to an instance of an object.