[Mono-list] Mod_mono directoy path issues.

Will Murnane will.murnane at gmail.com
Mon Jan 29 14:06:44 EST 2007

I'm not familiar with that html; are you trying to get the PDF file to
display in the browser?  You'd need to serve it via http, in that

Does double-quoting it fix anything?  You'd probably need to do
something like this:
this.EmbeddedFile.Text = "<IFRAME WIDTH='100%' HEIGHT='100%'
NAME='DocumentFrame' SRC=\"DATA\\\"" + path + "\\\"\"> ...
That way you'd output:
<IFRAME WIDTH='100%' HEIGHT='100%' NAME='DocumentFrame' SRC="DATA
\"{path}\""> ...
so the html renderer would recognize the SRC attribute's value properly.


On 1/29/07, Jim Canfield <jcanfield at tshmail.com> wrote:
> Greetings,
> I recently inherited a small ASP web app which I'm trying to make work
> on a mod_mono linux server. I have it working about 90%, however, I'm
> having trouble with file paths that contain spaces and parenthesis .
> I'm wondering how I might fix this?
> Here is the code that calls and displays the file path:
> //Get the file path
> string path = new DataManager().GetSingleValueAsString(SQL);
> this.EmbeddedFile.Text = "<IFRAME WIDTH='100%' HEIGHT='100%'
> NAME='DocumentFrame' SRC='DATA" + path + "'><EMBED SRC='DATA" + path +
> "' width='100%' height='100%'/></IFRAME>";
> Example path would look like this:  \\webserver\DATA\Some directory with
> spaces\File with Space and paren(1).pdf
> Is there a regex guru that might be able to conjur up some magic?  I'm a
> bit of a noob and .net is not a native tongue. Is this behavior expected
> anytime you move a .net app to a linux files system?
> Thanks in advance,
> Jim
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

More information about the Mono-list mailing list