I am adding one image button in the Row Bound event of the Gridview as



Code:
ImageButton imgSortAssendingbyId = new ImageButton();

imgSortAssendingbyId.Click += new ImageClickEventHandler(this.imgSortAssendingbyId_Click);

 

private void imgSortAssendingbyId_Click(object sender, ImageClickEventArgs e) 
{

}
The View source of the page is

PHP Code:
input type="image" name="grvResources$ctl01$ctl01title="Sort Ascending" src="wv_sort_asc.gif" style="height:6px;border-width:0px;" /> 
But the click event is not firing
I could not able to find the click event ?How to add the runat server property ?