Hey,
I have this:
<asp:HyperLink NavigateUrl='<%# String.Format("mailto:?Subject={0}&Body=http://development.elkfife.com/en-gb/common/managefiles/download.ashx?FileID={1}", DataBinder.Eval(Container.DataItem, "Name"), DataBinder.Eval(Container.DataItem, "File_ID")) %>' ImageUrl="~/images/share.png" AlternateText="Share file" Tooltip="Share file" runat="server" />
But the Name dataitem can contain unescaped &'s. I can't use UrlEncode because the subject would appear as 'This+is+my+subject', which is no good.
Is there a built-in method for ecaping everything but spaces?
Go to the complete details ...