all args to a query string should be url encoded. see:
HttpUtility.UrlEncode
note: they are automatically decoded when loaded into the query string
collection.
-- bruce (sqlwork.com)
> I have a DataGrid that displays file names from a directory and places them
> in a HyperLinkColumn as shown below.
[quoted text clipped - 11 lines]
>
> David
Anthony Jones - 25 Mar 2008 17:58 GMT
> > I have a DataGrid that displays file names from a directory and places them
> > in a HyperLinkColumn as shown below.
[quoted text clipped - 13 lines]
>
> HttpUtility.UrlEncode
And the two ways to do that are:-
Add another field to the datasource that has the file name Url Encoded
OR
Add a class that inherits from HyperLinkColumn and override the
FormatDataNavigateUrlValue method:-
//C#
protect virtual string FormatDataNaviageUrlValue(Object dataUrlValue)
{
base.FormatDataNaviageUrlValue(HttpUtility.UrlEncode(dataUrlValue.ToString()
)
}

Signature
Anthony Jones - MVP ASP/ASP.NET