简体   繁体   中英

How to insert,Delete,Edit record in MYSQL database using Details View in Asp.net

I am new in asp net .

I wanted to is there any way to insert, delete and edit rows using details view directly

by a string.

I am using these connection string for connecting mysql database

server=localhost;User Id=root;password=test;database=mydatabase

when I use mdf file I see the insert, delete and edit option, but when I look the options by using directly connection string I can't see it

Thanks in advance

You'll want to put that connection string in your web.config (look up 'connectionstrings'). And then use an objectdatasource. They can connect to the MySQL database.

However, you typically do not want to put select/insert/delete statements in your code and will want to write procedures for those.

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