开发者

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

b开发者_C百科y 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜