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.
精彩评论