c# - Adding Link button Event Dynamically -
i creating table dynamically passing html code sting.
now want add together link button , if click on row want delete.
please help me in advance
try create linkbutton first , bind event button... example
htmlgenericcontrol td = new htmlgenericcontrol("td"); linkbutton lnk = new linkbutton(); //lnk.id = set dynamic id; lnk.text = "delete"; lnk.click += new eventhandler(clicked); td.controls.add(lnk);
now create function click on button
protected void clicked(object sender, eventargs e) { // work on click... }
c#
No comments:
Post a Comment