ASP.Net VB Dataview Insert, Update, and Delete example
ASP.Net VB Dataview Insert, Update, and Delete example
I am extremely new to ASP.net so sorry for sound stupid. I am in desperate need of an ASP.net using VB example of a dataview that will update, delete, and insert. I have searched numerous places on the web that only provided code that only further confused me. Can anyone provide an example of a dataview that updates, inserts and deletes?
Any help is much appreciated.
thank you,
Brenton
Any help is much appreciated.
thank you,
Brenton
ASP.Net VB Dataview Insert, Update, and Delete example
I've got that far, but when I try and update, the grid or database is not effected. Should I do this programatically (if so, an example would be nice) or should I use the standard code generated by VS 2005?
Brent
Brent
ASP.Net VB Dataview Insert, Update, and Delete example
the SQLDataSource wouldn't let me check the Generate update commands.
I am not sure why I cant do this. Everything i am reading seems like this is an easy thing to do.
thank you,
Brent
I am not sure why I cant do this. Everything i am reading seems like this is an easy thing to do.
thank you,
Brent
We are investigating this problem. You will be notified on results as soon as possible. For the present you can configure SqlDataSource programmatically:
Code: Select all
"
DeleteCommand="DELETE FROM dept WHERE DEPTNO = ?" InsertCommand="INSERT INTO dept (DEPTNO, DNAME, LOC) VALUES (?, ?, ?)"
ProviderName="" SelectCommand="SELECT * FROM dept"
UpdateCommand="UPDATE dept SET DNAME = ?, LOC = ? WHERE DEPTNO = ?">