hw to identify click event

Posted by Oswaldlily under ASP.NET on 5/8/2013 | Points: 10 | Views : 628 | Status : [Member] | Replies : 1
gv_RowDataBound
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lnkView = (LinkButton)e.Row.FindControl("lnk");
lnkView.Click += new EventHandler(lnkView_Click);
}
if click is true i need to perform some action..hw to identify click event




Responses

Posted by: Kmandapalli on: 5/8/2013 [Member] Silver | Points: 25

Up
0
Down
Hi,

In .aspx page, for th elinkbutton write onClick Event.
At the backened, i mean in the .cs file under the LinkButton click event write the code, ie.., the action that you need to perform.

Mark as answer if satisfied......

Regards,
Shree M.

Kavya Shree Mandapalli

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response