Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










C# - How To Save A File To Another Server


What kind of path would I use to save a file (.pdf) on another server/network drive?
Say I have rights to a network drive 'optamail1' and a folder there called datasheets. I can access this folder from "Run" using \optamail1datasheets, however, this kind of path will not work in my application. Has anyone tried doing this before?


View 2 Replies (Posted: Mar 21 at 22:10)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Upload A File On The Web Server And Save The Link Of The File In A Database?
How doI upload a file on the web server and save the link ofthe file ina database?

Posted: Jan 30, 2010 08:43 PM

View 3 Replies!   View Related
Save A File To Remote Server With Out File Uploader
here i want to save a file to remote server where my file will be in client system...here i don't want to use file uploader control.In my application we have one function which will save word document to client systems temperory folder and that document again I want to save to server.

Posted: Dec 09, 2008 10:19 AM

View 8 Replies!   View Related
Save File In Server
I am having the string which contains filepath.using that filepath, i have to store the file in server. how to do.I don't want to pick the file using file upload control. Instead of that, i am giving the filepath directly in string in server side.how to store the file in server using the file path?

Posted: Sep 30, 2009 11:59 AM

View 11 Replies!   View Related
Open A File On The Server And Then Save It
this is my problem:

I have a link to Open a file (I have found this way cause with a simple link it would have been marked "readonly")

<a href="../DownloadFile.aspx?file=test.xls"> Open file
</a>

The code in the .aspx page permit to download the file with the header

Response.AddHeader("Content-Disposition",
"attachment; filename=" & file.Name)

So when the user click the link he is prompted wiht a Message box saying:

Open Save

The user click Open...modify the excel cells... but when he wants Save the file (from Excel menu)is saved on a temporary folder on the client pc and not on the server.

Is it possible to save the file directly on the server or not?

Ps. The "real" problem might bethat when the user click "Open" in the prompt tha file is first downloaded in the temp folder and then presented to the user

Posted: Jan 13, 2010 03:10 PM

View 9 Replies!   View Related
Configuration :: Cannot Save XML File On Server
I have an XML file that generated by a Codebehind (.cs) of an .aspx page. And everytime it must be generated automatically and must be saved on Server. It works on my local machine, but how can I do it on Server (host)?n local I managed it like:xmlDoc.Save(Server.MapPath("~")+filename);

Posted: Feb 18, 2010 09:06 PM

View 2 Replies!   View Related
Cannot Save A File In The Root Of The Server?
I am using asp.net 3.5. And i am serializing an object in server, I rent a hosting and i want to modify something in a dinamic way with XML,

This is my code :

Stream writer = new FileStream(Environment.CurrentDirectory + @"public_html" + nombrearchivo.Text, FileMode.Create);

serializer.Serialize(writer, p);

this is my error massage:

Exception Details:
System.UnauthorizedAccessException:
Access to the path
'C:WindowsSysWOW64inetsrvdasd.xml'
is denied.

Posted: Sep 9 10 at 23:57

View 3 Replies!   View Related
Asp.net - Ajaxuploader To Save File To Different Server?
I'm searching for a way to upload file by ajax-uploader component or ASP:Fileupload to different server then the application is running on, is there a way ?

Posted: Jan 24 at 15:24

View 1 Replies!   View Related
C#: Save Image File To Server From Stream?
I'm trying to send an image from Flash to a C# script to save it to the server filesystem. I have the flash end done, I just need help converting the C# script to save the image as a file rather than display it. Currently it only displays the image, but when you right click-save as it try to make you save it as a aspx file. Here is the C#:

[Code]....

I have only worked with PHP and this is my first ASP.NET project?

Posted: Jun 25, 2008 01:25 PM

View 5 Replies!   View Related
How To Save File From Client Machine To Web Server
Without using fileupload control, what is the way to store a file from client machine to web server.

FYI, a text box has the path the client machine file.

Posted: Feb 5 10

View 1 Replies!   View Related
Denied Access To Save Xml File On My Server?
My code is not being allowed to save an xml file in a folder on my server. Why is this?

you can see the error page here.. http://www.deutsch-english.org/

It seems to say something about not being authenticated and adding users to the config file. However this code has nothing to do with any users or groups, I just want it to always have permission to save files on the server. The code is purely internal, more like the core innerworkings of the site, it has nothing to do with users. I don't want to have to authenticate it, it shouldn't need authenticating, I just want it to work.

Posted: Mar 07, 2011 12:27 PM

View 6 Replies!   View Related
How To Save File Excel To Sql Server 2000
I have file excel and one database 'TestDatabase' provide by Sql server 2000 . That database contain table 'TestTable' inculde :ID, Notice. Now, i want save file excel to column 'Notice' . How i do that?

Posted: Nov 27, 2007 07:54 AM

View 2 Replies!   View Related
How To Save File (.xml) To Sql Server Database Using Javascript
Is there any way to create xml file and save it in SQL Server database all using JavaScript? I have no security issues for the purpose i need to do it.

I am generating xml stuff to be saved to database using javascript, but now I am wondering how to save it. Or should i use webservice for this? Actually I want to achieve above mentioned task in very a efficient and light weighted application manner.

Posted: Aug 14, 2009 08:55 PM

View 2 Replies!   View Related
How To Browse An Image File And Save At Server
I have one requirement from client where they want to browse and save their choice Logo image in a website which i am developing.

Really i don't know how it happens and Is there any issue like security i need to consider while implementing this logic?

How user (client) will browse image file and where should i store that file in server?

Every indivisual user can browse file of different size and different name; how can i manage at server side so that image appear at right place and in right manner?

Where should i store image corresponding to user id at server; i.e. in database or file?

Posted: Jul 9 10 at 4:55

View 1 Replies!   View Related
Security :: Save File Automatically From Server
I need to know the best way to have a user click a link that will download a file that is out on the server and save it to a specificlocation on their computer. The file is a custom template for Microsoft Outlook signature. Thus, it has to be in a certain folder and this folder will have a different location if the user has Windows 7 vs Windows XP.

I wrote a ASP.NET pagethat captures the user that is logged in and use WebClient.DownloadFile to download the file. However, I am getting an access is denied error. Apparently my server doesn't have access to write to the user's folder. My questions are.

1. How do I solve this and make it so that my server can write to the user's PC?

2. Is there a better way to roll out a custom Outlook template that the entire company should use?

Posted: Sep 16, 2010 10:21 PM

View 1 Replies!   View Related
Architecture :: How To Save The Picture File On Server
If i want to create a web site that take your picture and share it for your friends, what the bestwayto save the picture files on server? What the way is safer for the picture files? What the way has the best performance?

Posted: Oct 26, 2010 10:01 AM

View 9 Replies!   View Related
Save File From Server To Local Disk
How To Save File From Server Path To Local Disk

Posted: Apr 14, 2009 08:22 AM

View 2 Replies!   View Related
Save A Dynamically Created File On Server
I am writing an applicationto allowapplicantsto submit a completed application.There are two files: one they will view (with more color and formatting efforts etc) and a plain one for print. I want them to click on the Submit Final button in the pretty formatted one, and then I will upload the plain one on the server as the final submission.

Both will be dynamically created file pulling data from database at that moment. How do I save a dynamically created file on server?

Posted: Jul 16, 2009 01:21 PM

View 4 Replies!   View Related
C# - Downloading A File From Server And Save It In Client
I am currently developing an ASP.net application, where I generate a word document in server and I want to save it in client machine who access that feature with out user interactions. How can I download it and save it in client machine, using javascript?

Posted: Nov 15 10 at 9:34

View 3 Replies!   View Related
Save A Dynamically Created .CSV File To The Server?
I was wondering does anyone know how to save a file to the sever without using a fileupload? What I have isa file that isdynamically created as a .CSV file. Here's that part of the code:

[Code]....

How can I save that to the server instead of poping up a Save/Open dialog box?

Posted: Mar 07, 2010 04:36 PM

View 5 Replies!   View Related
SQL Server :: Save A Long Text In A File?
I have the following scenarion. I set a variable to a very long string. I then want to save the contents of the string into a file 'c:ewFile'.

declare @tableHTML nvarchar(max)
set @tableHTML = ...
--now i want to save the value of @tableHTML into a file called 'c:
ewFile'.

Posted: Feb 03, 2011 06:55 AM

View 4 Replies!   View Related
Web Forms :: Save File From Server To Users Computer
I have a file on the server that users will have the possibility to download to thieir computer. For example the filepath could look like below. How would it be possible to save this to the desktop or C: etc.. ?

[Code]....

Posted: Sep 05, 2010 03:07 PM

View 3 Replies!   View Related
Web Forms :: How To Save A Remote Excel File On The Web Server
What I am doing seems to be saving the Excel file in a text format. All I am trying to do is save the Excel file (xls) on my web server. Below is the code that "fetches" it now but doesn't save it in the proper format.

[Code]....

Posted: Mar 19, 2010 03:28 PM

View 1 Replies!   View Related
Web Forms :: Save File On DataBase Or On Directory On Server?
i believe That Saving Files In DataBase is good for Security Issue , But in My Scenario i didnt Care about Secrurity Issue,

i want to ask U guys which Better Save Files into DataBase or save it on Directory on Server, where This Issue Required:

1-(Reduce Load on Server and didnt affect server Memory).

2- Security not important.

if they have the same result i will move to DataBase Saving.

Posted: Apr 24, 2010 12:32 PM

View 3 Replies!   View Related
DataSource Controls :: Save File Into The Sql Server Database?
I want to upload a file (e.g. .xls, .pdf, .doc) and save into the Sql Server 2000 database through the web interface, and then to download this file.

Posted: Feb 28, 2008 03:54 PM

View 2 Replies!   View Related
SQL Server :: Can't Save Query Results To Excel File?
I am executing the following T-SQL code, which runs successfuly according to message I see at end of its execution, but the file c:cptest.txt is never created. I have checked for this file and it doesn't exist. what is the issue here?

EXEC MASTER..xp_cmdshell 'bcp "SELECT top(10) from Person.Address" queryout "C:cptest.txt" -T -c -t,'

Posted: Feb 03, 2011 04:31 AM

View 8 Replies!   View Related
Web Forms :: How To Save File To Server Rather Than Visitor Machine
i have get the piece ofcode from www.aspsbippets.com

protected void ExportToWord(object sender, EventArgs e)
{
//Get the data from database into datatable
string strQuery = "select CustomerID, ContactName, City, PostalCode" +
" from customers";
SqlCommand cmd = new SqlCommand(strQuery);
DataTable dt = GetData(cmd);
//Create a dummy GridView
GridView GridView1 = new GridView();
GridView1.AllowPaging = false;
GridView1.DataSource = dt;
GridView1.DataBind();
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition",
"attachment;filename=DataTable.doc");
Response.Charset = "";
Response.ContentType = "application/vnd.ms-word ";
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
GridView1.RenderControl(hw);
Response.Output.Write(sw.ToString());
Response.Flush();
Response.End();
}

this code create word documnet and automatically downloaded to visitor machine, how i can save it on server rather than visitor machine?

Posted: Apr 13, 2010 10:19 AM

View 2 Replies!   View Related
Web Forms :: Prompt User To Save An Image File On Web Server?
I'm trying towrite code that will allow a user to click a button and be prompted to save an image file thatresides on the web server. I'm using the following code, but I get an error that says "Error: Could not complete the operation due to error c00ce514.".

[Code]....

I have verified that the file exists. Is there another method for prompting users to save a file to their local machine?

Posted: Jan 19, 2011 05:12 PM

View 3 Replies!   View Related
Web Forms :: Is There A Way To Edit Excel File On Browser And Then Save It On Server
Is that a way to editexcel fileon browser and then save it on server?

Posted: Feb 15, 2010 09:30 PM

View 5 Replies!   View Related
Save A File Generated In Server In Clients Machine (mydocument)
i'm developing a system with asp.net, there i generate a powerpoint presentaion in the server machine, i need to generate it there and save it in the clients machine, how can i achieve this? how to access the clients machine and save the generated file there?

Posted: Aug 16 10 at 6:59

View 3 Replies!   View Related
Create And Save Div Content In MS Word File On Server On Button Click?
I have tosave a .doc fileon theserver when the user clicks a button with no'Open/ Save / Cancel' dialog box.

my code:

HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset =
"";
HttpContext.Current.Response.ContentType =
"application/msword";

[Code]....

The problem is that the user first sees a 'Open/ Save / Cancel' dialog box. Instead of dialog box, It should be automatically save on server.

Posted: Mar 18, 2010 02:22 PM

View 3 Replies!   View Related
Web Forms :: To Save A Copy Of Aspx Pages' Outcome As An Html File On Server?
I have a master page and all my pages inherit it.I have overridden Render only in the page that I want to render and save as html, the way I am doing it is like this:

protected override void Render(HtmlTextWriter writer)
{
using (StringWriter stringWriter = new StringWriter(new StringBuilder(), CultureInfo.InvariantCulture))
{
HtmlTextWriter htmlTextWriter = new HtmlTextWriter(stringWriter);
base.Render(htmlTextWriter);
File.AppendAllText(MapPath("~\FileNameBlaBla.html", stringWriter.ToString());
}
}

But I get these errors:

RegisterForEventValidation can only be called during Render();

A page can have only one server-side Form tag.


Posted: Dec 11, 2009 02:09 PM

View 1 Replies!   View Related
HttpHandlers / Modules :: How To Save The Image Via The Right Click Save File Browser
I'm serving images through an httphandler and when the user goes to save the image via the right click save file browser, full URL of the image is displayed instead of only the file name. How do I rewrite or change this image url to make it more user friendly?[URL]

Or do I need to create my own image save/export menu and chop off that file name when saving?

Posted: Jan 23, 2009 04:58 PM

View 5 Replies!   View Related
Web Forms :: How To Open A Popup With Save Button To Save Txt File
i have place some .txt files in my web application root directory. now i want to open a popup on button click with save button so that client can save this file on his/her PC. also can we auto set the path??? mean client jst press save button and file automatically stored his "D:\Foldersample.txt".

Posted: Feb 03, 2011 05:50 AM

View 1 Replies!   View Related
How To Save A XML String Into A File And Pop Up A SAVE AS... Dialog Box For The User
My Asp.Net calls a SQL sproc and returns a XML file as a string.This is whatI need to do:

- save that string into memory (as a file);
- pop up a dialog box asking the user which path he would like to save thefile;

Any samples out there...how do I achieve this task in Asp.Net C#?

Posted: Dec 15, 2010 03:14 PM

View 4 Replies!   View Related
How To Display An Image In Image Control Using Fileupload As File Not Save To Server
i want show an image in image control as user select an image file through fileupload control. and i not want saving image on the my server

Posted: Feb 23 at 20:23

View 2 Replies!   View Related
How To Save A Docx File In Sql Server 2005 And Display It In Aspx Pages As Docx Document
i am using visual stdio 2005 and sql server 2005 for making a apllication

i want to save user's doc,docx file in database and show the uploaded user doc ,docx file in asp page

Posted: Dec 15 10 at 11:47

View 1 Replies!   View Related
Forms Data Controls :: Export Gridview Data & Save In Excel File On The Server
I have code to export the grid to excel . i have taken it from [URL] now i want to save excel file directly without asking user to save it or open it at client side. i want to save it on server folder. how to do that .

Posted: Mar 31, 2010 06:27 AM

View 2 Replies!   View Related
SQL Server :: Save To Tables In One Save Command?
I want to save two table in one transaction.

Ex.

table 1 : tblTransaction
Table 2 : tblTransDtls

the tblTransaction is my header and the tblTransDtls is the details about the header.

Posted: Nov 18, 2010 02:27 AM

View 2 Replies!   View Related
How To Save A File Using Save File Dialog Box
i am developing a web application i want to save a file using save file dialog box pls give me code insted of links

Posted: Sep 29, 2010 12:31 PM

View 2 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved