HI
I have gridview in my page that I use hyperlink on it
<asp:TemplateField ItemStyle-Width = "80px" ItemStyle-HorizontalAlign="right"
ItemStyle-VerticalAlign="Middle">
<ItemTemplate>
<asp:HyperLink ID="lnkRemove2" runat="server" CssClass="LBP3E" Text = "more.." NavigateUrl='<%# "state/view.aspx?BehCode="+Eval("Behcode")+"&Id="+Eval("Id") %>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
when users click on this hyperlink it go to view.aspx page and according to behcode and Id it show data
this is my table in database
Users Table
Id
|
Name
|
Behcode
|
1
|
Sara
|
1155
|
2
|
Jack
|
1111
|
3
|
Jenifer
|
1166
|
4
|
Micheal
|
1111
|
now I want when users click on hyperlink according to above table if their behcode=1111 it go to show.aspx(it is anotherpage that I made) else it go to View.aspx page
How I can do it?
Best Regards