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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top