How to use string.format with eval in the aspx page?

empollete

New Member
I have a repeater in my web page like following \[code\]<asp:Repeater runat="server" ID="AccountScrollRepeater" onitemdatabound="AccountRepeater_ItemDataBound"><ItemTemplate> <tr class="primary-BL2" style="text-align:left"> <td style="width:70px"><asp:Label runat="server" ID="AccountNoLabel" Text='<%# Eval("AccountNo") %>'></asp:Label></td> <td style="width:40px"><asp:HyperLink runat="server" ID="CustomerHyperLink" NavigateUrl="" Text='<%# Eval("CustId") %>' Enabled="false"></asp:HyperLink></td> ... </tr></ItemTemplate>\[/code\]I would like to set the NavigateUrl of the CustomerHyperLink to following expression,\[code\]string.Format(AppSetting.Instance.GetSearchDetailUrl(SearchTypeEnum.Customer), '<%# Eval("CustNo") %>');\[/code\]My question is instead of setting the NavigateUrl in the code behind, how do I put this in the aspx page?
 
Back
Top