Wednesday, December 4, 2013

Binding Multiple Parameter in Hyperlink column - Datagrid - C#

The following code shows how to bind Multiple Parameter in Hyperlink column in a Datagrid - C#

< asp:HyperLink ID="HPL_Wizard" runat="server" Target="_self" 
CssClass="ms-PMSButton" ToolTip="Wizard style configuration" Text='View' 
NavigateUrl='<%# string.Format("SettingsAddApprover.aspx?DeptID={0}&EligibilityID={1}", HttpUtility.UrlEncode(Eval("DeptID").ToString()), HttpUtility.UrlEncode(Eval("EligibilityID").ToString())) % > ' / >

No comments: