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

<<  February 2018  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
2627281234
567891011

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 2018

Sign in