IE Reading / Writing On Client End?

Aug 15, 2010

Is there a way to read and write files on a client's computer using a web based application? Basically I need to create a internal app that will take two input CSV files and convert it into an output CSV file that is written to the same location as the input files on the client's computers.

Since this is an internal app, I don't have to worry about security. I can easily write a C# app for this but I want to create a ASP.NET app (or any other format). I even looked into creating a HTA application.

View 1 Replies


Similar Messages:

Go About Reading And Writing To Virtual Directory In 7?

Feb 10, 2010

How do you go about reading and writing to a virtual directory in iis 7?

View 2 Replies

Web Forms :: Reading And Writing Textfile In ASP.net

Dec 20, 2010

I am trying to read and write text file like that, writing

StreamWriter wr = new StreamWriter(Server.MapPath("aa.txt")); wr.Write("aaaa" + System.Environment.NewLine); wr.Write("bbbb" + System.Environment.NewLine); wr.Write("bbbb" + System.Environment.NewLine); wr.Close();
Reading
string line11 = ""; using (StreamReader sr = new StreamReader(Server.MapPath("aa.txt"))) { while ((line11 = sr.ReadLine()) != null) { TextBox1.Text += line11 + "
"); } }

and want to display

aaaa
bbbb
bbbb in TextBox1.Text

Writing is not problem , The problem is reading, to display line by line on textbox , we use "
" in normal windows form c sharp , but in asp it is not working. also is there anything instead of System.Environment.NewLine when writing. And is there any converter between NORMAL WINDOWS FORM csharp to ASP .NET C SHARP.

View 4 Replies

Web Forms :: Rollback From File Reading / Writing

Mar 9, 2011

I am using more than one files to read and write to the server. Suppose during writing or reading any of files gets error the already stored files need to be rollback or removed from storing.So that the user agin try to write without error. Simply the all of the files need to be stored into the server without error, of error occurs to any of file none of files need to be read/write

View 2 Replies

Reading / Writing Text Files On Server?

Mar 4, 2011

I have write small web-service that recieves query and read txt file for matching. For it I'm using StreamReader.

I'm not waiting that it will be thousands of users in hour for this service, but whats worried me - if some users at the same time will be use that service is it ok? Can text file on server side be readed at same time from some users?

What is capacity for using StreamReader or StreamWriter on server?

View 6 Replies

Web Forms :: Reading And Writing Data Using POST Method

Aug 24, 2010

I have a web page (Provider) that creates an XML file to be send to the Requester in this fashion:

1. A Requester page needs to send an XML file to the provider page
2. Provider will read the XML file to authenticate the request
3. Provider will Create an xml file with some data.
4. Provider will send the xml file back to the Requester.

Can anyone provide sample code for both the Requestor page (step 1) and the Provider page (steps 2 & 3)

View 1 Replies

Web Forms :: File Reading And Writing For Number Of User

Mar 16, 2011

In my application i want to share one .txt for read and write among no. of users. in Button click i m writing data in that file and in tick event of Timer i m reading that file, In tick event i m reading that file based on file based cachin means if file have been changed then only i m reading that file but when i have put m application i IIS then i m not able to get updated file.

View 2 Replies

Databases :: Reading And Writing MS Excel (2007) Files?

Mar 4, 2011

Want to create a web based application for reading and writing excel files.

Issue :

1. Want to upload an excel file and store it some location.
2. Read data from excel file, performing some sorting and filtering
3. Write filtered data to new excel file.

View 1 Replies

Security Exception Over Reading/writing Files On Medium Trust?

Nov 21, 2010

I'm working on a project in ASP.Net, and it requires reading/writing to files on my server. I'm hosted at GoDaddy, and they swear they've got me at Medium Trust. When I try to read or write files that are in my own domain, I get Security Exceptions. I've tried multiple ways of opening/saving the files and they all return security errors. Here's the most recent error and offending line of code (I didn't save them all, they're all pretty much the same thing):

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.MediaPermission, WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' failed.

PngBitmapEncoder pbe = new PngBitmapEncoder();
pbe.Frames.Add(BitmapFrame.Create(new Uri("ornament.png", UriKind.Relative))); <-- Error

I've also gotten the error when trying to read/write using FileStream, Bitmap.Save and new Bitmap("ornament.png"). Could there be a problem with my Web.config? Is read/write supposed to be blocked by medium trust? This is a time-sensitive project and this is a brick wall for me. The deadline is end of business day tomorrow and GoDaddy isn't responding.

View 2 Replies

JavaScript - Writing Code To Run On Client Side?

Jul 8, 2010

Is there a way (except for using JS on the html view) to tell asp.net to run a certain code on client side (instead of server side)?

View 4 Replies

WCF / ASMX :: Writing A Dataset Recordset To A Stream To Pass To Client?

Mar 3, 2011

I have run into the issue on DataSet.WriteXml method. Apparently, if any row in a column in the DataSet has a null value, the entire column/rows will not write out in the xml file using the method DataSet.WriteXml. So, as terrible as that bug is, I need to send the data another way. Does anyone have any thoughts?

View 4 Replies

JQuery :: Reading The File On Client System?

Dec 17, 2010

Given a file path on client machine, is it possible for me to get the content of the file from that
location and show that content in browser using any client scripting language.when i explored on this , i got following information.1.Client scripting languuages are not allowed to have access to client system as it is a hugesecurity threat.2. We can use ActiveXObject (FileSystemObject) to have access to client system, but it haslimitations like it only works in IE & client also need to change IE settings to make sure that thisactive x componet runs in his browser.Does any one have any alternative solutions with Jquery/Ajax or any client scripting language(that is cross browser compatible and works for all file types.)

View 3 Replies

Reading Binary Data From Db And Display In Word Client?

Jan 23, 2010

i am storing word doc as a bindary data in database in my aspx page i have a click viewdoc button link, i want to open doc into ms word client when i click this link.

i have

Document as varbinary(max) type in db
DocumentType as nvarchar , .doc or .docx

View 10 Replies

Reading Data From Client Computer Serial Port Using Web Application?

Jan 2, 2010

Is it possible to read data from serial port of client system using asp.net web site. Here is my scenario

I will be having computers connected in LAN and a web application which resides on server. Each client computer will be connected to a external machine using serial port and is ready for reading data, external machine measures equipment details and sends through serial port.Now I need to read the same data using my web page, is it possible?

Like when we do video chatting our web page reads data from web cam and sends the stream to web page. this way how can I read data from client machine to web page.

View 1 Replies

Reading XML File From Client Machine - Getting - Access To The Path Is Denied

Jul 13, 2010

I'm currently trying to READ XML file from the client machine where the user can open from any location (there is no specific location). However, i browse to the folder and select the xml file and when it execute this line (below) it throw an error complaining about access to the path is denied any idea how should i approach?

error: System.UnauthorizedAccessException: Access to the path is Denied
Dim reader As New XmlTextReader(System.IO.Path.GetFullPath(File1.PostedFile.FileName))
Dim m_xmlr As XmlTextReader
'Create the XML Reader
m_xmlr = New XmlTextReader(System.IO.Path.GetFullPath(File1.PostedFile.FileName.ToString()))
'Disable whitespace so that you don't have to read over whitespaces
m_xmlr.WhitespaceHandling = WhitespaceHandling.None
'read the xml declaration and advance to family tag
m_xmlr.Read() **<<<<<ERROR**
'read the family tag
m_xmlr.Read()
'Load the Loop
While Not m_xmlr.EOF
...........................

View 1 Replies

Reading A File Into Memory And Then Reading It One Line At A Time?

Mar 7, 2011

I know this is probably a pretty easy thing to do and it is if I can upload the file and store it onto the hard drive of the server. What I need to do is read the text file into memory and then parse through it one line at a time. Anyone have any code that demonstrates that?

View 8 Replies

WCF / ASMX :: Add Service Reference Reading Svc File But Not Reading Service?

Mar 10, 2011

I was trying to go through this tutorial:

[URL]

but when I tried to add the service reference to the silverlight app, the Add Service Reference window would show me that there was a service file, but the node wouldn't expand to show the rest of the files that contain the services and what not. I got this error instead:

"An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately."

"Parser Error Message:There is no service behavior named 'AdventureWorks_WebServer.Service1Behavior'."

"Metadata contains a reference that cannot be resolved: 'http://localhost:55579/Service1.svc'.

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

If the service is defined in the current solution, try building the solution and adding the service reference again."

here's my web.config file:

[Code]....

View 1 Replies

C# - Show Only Client-side Validation With Client And Server Validators?

Dec 12, 2010

If I have something like the following:

<asp:TextBox id="test" runat="sever"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ControlToValidate="test"
ErrorMessage="Required"></asp:RequiredFieldValidator>
<asp:Label runat="server" id="lblStatus"></asp:Label>

if in the code behind, I set the label to "You must enter a value if the textbox is empty" to validate it on the server side and this is fine, but if javascript is enabled, I don't want to show the client side validation and the server side label together. Is this something where I would just have to disable the client-side validators if javascript was enabled?

View 3 Replies

C# - Writing Away A Psw Field Value Into .xml (md5)?

Jan 29, 2011

I have a textbox with textmode :password.

But after the postback the value disapears.

How can i retrieve this string value as simple as possible together with a very basic encryption?

View 1 Replies

Writing A Report Using Asp.net?

Mar 30, 2010

Is there a way to generate reports using asp.net?I am using an oracle database for datastore Also using crystal reports to generate reports from database now.

View 3 Replies

Writing Useful Unit Tests?

Jul 7, 2010

I have a simple page with a Grid that I'm binding a collection of objects to. I also have some simple functionality on the grid to edit and save rows. I would like to write unit tests for this page, but it's not really making sense to me.For example:

Private Sub LoadGrid()
'Populate Collection
grid.datasource = MyCollection
grid.databind()
end sub

I guess a Sub really doesn't need a unit test, but what if this were a function that returned true when the grid had been loaded. How do you write a unit test for this? What other test should be done on a simple web page like this?

View 2 Replies

C# - Writing XML Data To An Page?

Sep 29, 2010

I want to show my data on an ASP.NET page using C# in XML format

<person>
<email>a@a.com</email>
<dob>YYYY-MM-DD- HH:MM:SS</dob>
<city>XYZ</city>
</email>
</person>

Do you have any code with examples.

View 4 Replies

Writing Only Selected Data To .txt?

Mar 7, 2011

I have a page with a gridview on it. It selects rows relevent by using a querystring id passed on from the previous page.

From this gridview, i want to write only the displayed rows to a .txt file. How can i do this?

View 3 Replies

Writing To A File At Runtime

May 17, 2010

I am trying to write some lines at runtime to a text file using streamwriter, but i have to allow only 100 lines to be written to that file, if 101 line is supposed to be written to that file than first line of the file must get discarded/deleted and file must allow writing the 101 line so the file will actually always contain only 100 lines.

View 10 Replies

Writing Xml To Memory Instead Of A File?

Feb 18, 2010

Is there a way to write xml directly to an object that can represent it in memory and use that with XPath instead of an .xml file?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved