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

  • Home
  • SEARCH
  • 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 549063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:08:43+00:00 2026-05-13T11:08:43+00:00

I have to do this thing for work that’s really just a formality. Normally

  • 0

I have to do this thing for work that’s really just a formality. Normally I’m a linux/UNIX guy but they’re making me do this. I need to have an asp webpage that displays data from two different database servers. This is easy — just a drag and drop in visual studio. The problem is I also need a way to insert a new row into a table on the SQL Server 2008 database. Right now I have:

<html><body>
...
<asp...
stuff to display data
...>
...
<form>
Name: <input type="text" name="name" id="name" /><br>
Quantity: <input type="text" name="quantity" id="quantity" /><br>
<input type="submit" />
</form>
</body></html>

I know html quite well and I’ve also done quite a bit of web programming in python that uses MySQL in the backend but I can’t stand programming with a GUI. I know how to do the connection string I just don’t know how to make asp.net see the data in the fields.
Oh and the table is a simple two column table: one varchar for a product’s name and an int for its quantity. All this has to be done in visual studio.

  • 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-13T11:08:43+00:00Added an answer on May 13, 2026 at 11:08 am

    In Visual Studio for an ASP.NET page you can use the DetailsView control to perform an insert. Follow these simple steps:

    1. Create a new Web Form in Visual Studio
    2. Make sure you’re in Design View (and not Source View)
    3. Drag and drop a SqlDataSource onto the form (in the toolbox’s Data category)
    4. Click on the little |> arrow next to the SqlDataSource’s gray blob and run the Configure Data Source wizard
    5. Select the database and table and fields that you want
    6. On the last page of the wizard you can test the query to make sure it works
    7. Drag and drop a DetailsView onto the form (also in the toolbox’s Data category)
    8. Click on the little |> arrow next to it and in the list of data sources choose the SqlDataSource that you just created

    Now you’re done!

    Regarding your sample about raw HTML – that’s generally not the recommended approach when using ASP.NET Web Forms. With Web Forms there are rich “server controls” that worry about most of the HTML rendering for you. They also have logic in them to help make a site more secure such as HTML encoding values.

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

Sidebar

Ask A Question

Stats

  • Questions 279k
  • Answers 279k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try switching DEP off just to see if is that… May 13, 2026 at 3:30 pm
  • Editorial Team
    Editorial Team added an answer Why are you looking for "someone off the street"? To… May 13, 2026 at 3:30 pm
  • Editorial Team
    Editorial Team added an answer How do Columnar Databases work? Columnar database is a concept… May 13, 2026 at 3:30 pm

Related Questions

I have a small command-line application written in C that acts as a wrapper/launcher
For about a year now, I've had problems trying to send and receive email
I am using .NET 3.5SP1 and DataContractSerializer to serialize a class. In SP1, they
I have a number of different representations of the same kind of object; let's
I'm writing an app that has a wizard type input section. Think MS Windows

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.