Pass Argument when opening page from Link button/Hyperlink from gridview.


Hello,

use below code to pass argument to new opening page.

Suppose we are try to open EmpDetail page by cliking on HyperLink.

<asp:HyperLink ID="mylink" runat="server"
         NavigateUrl='<%# Eval("EmpID","EmpDetail.aspx?EmpId={0}") %>' Text='<%# Eval("EmpName") %>'>
</asp:HyperLink>


Enjoy !!!!

Posted in |

0 comments:

Post a Comment