473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

asp.net 2.0 web form contents to text file


I have a simple web form with text boxes that my user fills out and
upon submit I get a copy emailed to me. I would like those same
values to be stored in a text file or csv file on the IIS server,
using ASP.NET 2.0.

I am sure there is a simple example already available on the
web.......can someone help me find it?

Thanks

Sep 14 '07 #1
5 1633
If you are getting a copy emailed to you, why can't you add code in the email
method to save the email contents to a file also?
--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"bg********@yahoo.com" wrote:
>
I have a simple web form with text boxes that my user fills out and
upon submit I get a copy emailed to me. I would like those same
values to be stored in a text file or csv file on the IIS server,
using ASP.NET 2.0.

I am sure there is a simple example already available on the
web.......can someone help me find it?

Thanks

Sep 14 '07 #2
Sorry, I just do not know how. My page is in VB.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yohohhoandabottleofrum.comwrote
in message news:B1**********************************@microsof t.com...
If you are getting a copy emailed to you, why can't you add code in the
email
method to save the email contents to a file also?
--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"bg********@yahoo.com" wrote:
>>
I have a simple web form with text boxes that my user fills out and
upon submit I get a copy emailed to me. I would like those same
values to be stored in a text file or csv file on the IIS server,
using ASP.NET 2.0.

I am sure there is a simple example already available on the
web.......can someone help me find it?

Thanks


Sep 14 '07 #3
"Bgreer5050" <bg********@yahoo.comwrote in message
news:p0*****************@newssvr14.news.prodigy.ne t...
>If you are getting a copy emailed to you, why can't you add code in the
email method to save the email contents to a file also?
Sorry, I just do not know how. My page is in VB.
Did you not write it, then...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 15 '07 #4
On Sep 15, 6:58 am, "bgreer5...@yahoo.com" <bgreer5...@yahoo.com>
wrote:
I have a simple web form with text boxes that my user fills out and
upon submit I get a copy emailed to me. I would like those same
values to be stored in a text file or csv file on the IIS server,
using ASP.NET 2.0.

I am sure there is a simple example already available on the
web.......can someone help me find it?

Thanks
you'll need to set either iis_wpg or aspnet user to have write access
to a directory, can't remember which one. if your server is hosted,
you might need to get in touch with your providor.

then simply google "write to a file in vb.net" for instructions on how
to write to a file.

I suggest making an individual file for each email with a unique name
(google "guid in vb.net for how to make a guid, or better still name
the file after the year+month+day+hour+minute+second, or something
else).

cheers,
denz.

Sep 15 '07 #5
"densial" <de*****@gmail.comwrote in message
news:11**********************@n39g2000hsh.googlegr oups.com...
I suggest making an individual file for each email with a unique name
(google "guid in vb.net for how to make a guid, or better still name
the file after the year+month+day+hour+minute+second, or something
else).
I usually have one log file per day for this sort of thing - makes it a bit
more manageable...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dave B | last post by:
Does anyone know of a program that will read a text file and fill in a web form with the contents of that file? We need to get about 3000 records (5 fields to each record) into a database owned by...
14
by: StumpY | last post by:
HI, I have set up a page with a form which appends data to a .csv file on my asp server, this is to enable a limited number of users to add news threads to this file, which contains the data in...
1
by: Marc | last post by:
HI, I have this simple code below that writes my forms buttons name and location to a text file. What I am really struggling with is the code to read the information back in form the text...
13
by: Marc | last post by:
The first part of the below writes the name and location of all buttons on a from to a text file. The second part reads that information back in and recreates the buttons. My problem is reading...
1
by: pjsteinfort | last post by:
Hi all just looking for some advice on the best way to read a text file and fill in a web form with the each record in that file? We need to get about 1000 records into a database and the...
1
by: cdnmr | last post by:
Hi, I am a newcomer to VB, (just about to complete my introductory course). I have developed a feedback form where users can input their personal details (name, telephone etc) as well as feedback...
1
by: hotrod57 | last post by:
I am trying to append the results from a form to a text file. My code is supposed to print out the results on one page, and append the results to another page each time data is entered on the form...
3
by: DN2UK | last post by:
I am making a windows form in vb.net that needs to read form a text file and insert the text as objects when the form loads . The textboxes are as follow TxtJobtitle.Text TxtSalary.Text...
7
by: jcnone | last post by:
Does anyone know how to populate form fields on a html web page (client side) with data from an Excel file (CSV) or text file. I am currently having to input data to many text fields manually. I...
8
gcoaster
by: gcoaster | last post by:
Hello Access Guru's After pulling out most of my hair last year getting access to work the way I wanted it to to perform the simplest tasks, I am back at it and aim to not to pull out the rest! ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.