File Name Underscores: Internet Explorer vs. Firefox

by jrose 5/7/2010 9:09:00 AM

Internet Explorer and Firefox handle saving documents with file names containing underscores differently.  IE will, by default, save the document with the desired file name containing underscores.  However, Firefox will instead replace all of the underscores with '%5f'.  This can be avoided by wrapping the desired file name in Uri.UnescapeDataString().

 

For example, with the ReportViewer class:

[ReportViewer instance].LocalReport.DisplayName = Uri.UnescapeDataString("File_name.ext")

 

The resulting document will, by default, be saved as File_name.ext from IE and as File name.ext from Firefox

Tags: , , , ,

.NET

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  November 2017  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign in