View Single Post
  #2 (permalink)  
Old November 14th, 2006, 08:43 AM
nitinp nitinp is offline
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hi there,

I hope this will help you.

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
 if (e.Row.RowType == DataControlRowType.DataRow)
 {
   HyperLink hlnk = (HyperLink)e.Row.Cells[0].Controls[1];
   hlnk.NavigateUrl = "javascript:getPage(" + hlnk.Text + ")";
 }
}