Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3495610
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:08:51+00:00 2026-05-18T12:08:51+00:00

I have to make an ASP.net form and only need to gather 3 fields:

  • 0

I have to make an ASP.net form and only need to gather 3 fields: name, bday and email.

Do you think it’s best to write the info to a csv or xml file, or do you think it’s worth it to write to a SQL DB or something and then export from there to a file?

I’m of the opinion that just writing to a flat file is best because it’s just going to need to be exported into a csv/xml file anyway so it can be appended to an excel file.

I’d use something like streamwriter or filestream in my C# submitbutton function:

StreamWriter sw = new StreamWriter(filename, true);
sw.WriteLine(string.Concat
( textBox1.Text
, textBox2.Text
, textBox3.Text
, textBox4.Text
, textBox5.Text
, textBox6.Text
, textBox7.Text ));
sw.Close();

Am I overlooking shortcomings of using csv and StreamWriter? Like do any weird things happen when the file gets to a certain size?

Also, how is Streamwriter compared to Filestream, or should I be looking at a different method entirely?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:08:52+00:00Added an answer on May 18, 2026 at 12:08 pm

    Even for small applications you will never regret using a database. Especially if they ever change / grow. Text files are a lot harder to make a change if you want to store other data.

    File access for web applications be challenging at best. If you do use a Database I would ultimately look in to XML/XSD and using Data Sets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been developing an asp.net mvc application where i need to make large
I have an ASP.Net form and I want to send an email when the
I have an ASP.NET form that the user can make lots of changes to,
I have a ASP.NET website. If I make a request for a page it
I'm still pretty new to asp.net web forms. I have a requirement to make
I have an ASP.NET page with a Wizard control containing several pages of form
I need to make a simple asp.net MVC project, which contains a GridView. I
I am currently trying to validate my ASP.NET form. I need to be to
I realize that ASP.NET is only designed to support a single form . What
I have a form in asp.net webpage which contains 2 drop down lists and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.