Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass to varible with hyperlink in datagrid, C#

Status
Not open for further replies.

iis6newbie

Technical User
Nov 22, 2003
54
0
0
US
Hello all,

how can I pass two variables with a hyperlink, here is my code with one variable:

<asp:TemplateColumn HeaderText="Pass to">
<ItemTemplate>
<asp:HyperLink id="lnkPass" ToolTip="Pass to different user" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.id", "newuser.aspx?id={0}") %>' runat="server">Pass To</asp:HyperLink> </ItemTemplate>
</asp:TemplateColumn>

Thanks
 
Try something like this
Code:
<asp:TemplateColumn HeaderText="Pass to">
<ItemTemplate>
<asp:HyperLink id="lnkPass" ToolTip="Pass to different user" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.id", "newuser.aspx?id={0}&othervariable={1}") %>' runat="server">Pass To</asp:HyperLink>        </ItemTemplate>
</asp:TemplateColumn>

Rob

i'm a boy, called Bert, and I may not be crazy, but if i'm not the rest of you are...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top