Visual Studio .NET - get file path in mozila

Asked By bretto kumar A
23-Dec-08 04:19 AM

hai

string str = Path.GetFullPath(FileUpload1.PostedFile.FileName);

im using the above code ib my application to get the upload file path.

this code is perfectly work in IE

but it dosen't work in Mozilla

in mozilla it get and display path like

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\hhvB4.tmp.jpg

this

but my image path is C:\Documents and Settings\acibre.ACIINDIA\Desktop\hhvB4.tmp.jpg

how can it solve this problem

please share ur ideas

 

 

 

READ THIS  READ THIS

23-Dec-08 05:03 AM

When you have to pass in a file path to do some processing with the file, try using the following C# code.

string path = Path.Combine(Environment.CurrentDirectory, @"..\..\TestDeserialization.xml");

Where,

The TestDeserialization.xml file is in the Project root directory.

It helps to avoid confusion in file paths.

Create New Account
help
Is Visual Studio self-hosting ? .NET Framework Does Microsoft use Visual Studio IDE, Visual Studio Debugger, Visual Studio Linker and Visual Studio compiler for developing Visual Studio ? Or is Visual Studio not
Visual Studio .net .NET Framework Hi NG, ich habe vor längerer Zeit mit Visual Studio .Net 2003 gearbeitet und überlege momentan auf einen neueren Stand upzudaten. Ein Visual Studio .Net 2008 scheint es nicht zu geben. Habe zumindest mit googeln nichts gefunden. Was
Wise for Visual Studio.NET Wise for Visual Studio.NET By Peter A. Bromberg, Ph.D. To "Print This Page" Link Peter Bromberg Wise for Visual Studio .NET is a total and complete installation development system for creating and editing Windows® Installer
Visual Studio versioning . . . . how to tell? .NET Framework To my knowledge, Visual studio 6 was released in 1998, then Visual Studio .NET 2002 is VS 7, then Visual Studio .NET 2003 is VS 7.1, then Visual
visual studio.net 2003 and Access 2007 database .NET Framework Hi I am currently using Visual Studio.Net 2003 running on Windows Server 2000 operating system. I have used Visual Studio.net 2003 connecting to Access 2002 databases in the pass with great success. Now