Tuesday, October 9, 2012

Pass More Evals in QueryString with String.Formate



<asp:TemplateField HeaderText="EMail" SortExpression="EMail">
    <ItemTemplate> 
         <asp:HyperLink ID="hp" runat="server" 
                  CommandArgument='<%# Eval("SysID", "{0}") %>' 
       NavigateUrl='<%#  String.Format("~/ReportViewer.aspx?RevID= {0} 
      & User={1}", Eval("ID"),  Eval("USER")) %>' Target="_blank"  %>'>
</asp:HyperLink>
     </ItemTemplate>
</asp:TemplateField>




No comments:

Post a Comment