简体   繁体   中英

How to write ASP.NET webform data to SQL

I am a total beginner of ASP.NET. I have created a webform in Visual Studio and now I need to figure out how to make the webform submit the data to a record in SQL. I assume there are thousands of tutorials out there for this but I can't seem to find any. Everything I find seems wildly over-complicated to just simply write data to a record. (or maybe its just my lack of understanding .NET that makes it seem over-complicated.)

I dont need to exchange data, or update live data on a page form the db, I just need to write the data to a record.

Can anyone point me in the right direction?

You could use the scaffolding feature to generate your application.

All you need to do is setup your connection string (pointing to your database) and follow this tutorial ( http://www.c-sharpcorner.com/UploadFile/4b0136/getting-started-with-web-forms-scaffolding-in-Asp-Net/ ).

As simple as this!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM