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

<<  March 2019  >>
MoTuWeThFrSaSu
25262728123
45678910
11121314151617
18192021222324
25262728293031
1234567

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 2019

Sign in