Hyperlink column in a datagrid

G

Guest

Hi Guys, I have a hyperlink column in a datagrid as follows

<asp:HyperLinkColumn Target="_parent" DataNavigateUrlField="HREF"
DataNavigateUrlFormatString="detailspage.aspx?id={0}&CRM=true"
DataTextField="From" SortExpression="From" HeaderText="From">
<ItemStyle Width="20%"></ItemStyle>
</asp:HyperLinkColumn>

How can i use the HttpUtility.UrlEncode to encode the URL?

Thanks in advance

Manny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top