hyperlink custom binding

jaws1021
jaws1021 used Ask the Experts™
on
I have created gridview and my one of the template column is hyperlink. So, I need to point that out to another page with will contain two data field from database. I tried to do in custom binding, but it gives errors. How can I do that?

When user clicks on that HYPERLINK it will go to another page lets say name go.aspx also will get and clientidnumber and clienttype of that file on that whole url basically.
what would be the syntax for that url?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Raju SrivatsavayeSoftware Engineer

Commented:
<asp:TemplateField ShowHeader="False">
       <ItemTemplate>
     <a target="_blank" href="URL to your page.aspx?ID=<%# Eval("ClientIDNumber") %>">
                                                                    View</a>
      </ItemTemplate
 </asp:TemplateField>

Author

Commented:
how about clienttype?

Commented:
The example below is for a datagrid..but you can use the same logic to build parameters for a gridview as well..

http://www.extremeexperts.com/Net/FAQ/PassingMulitpleParameterinURLLink.aspx
Software Engineer
Commented:
<asp:TemplateField ShowHeader="False">
       <ItemTemplate>
     <a target="_blank" href="URL to your page.aspx?ID=<%# Eval("ClientIDNumber") %>&ClientType=<%# Eval("ClientType") %>">View</a>
      </ItemTemplate
 </asp:TemplateField>

Author

Commented:
thank you!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial