Author: kazmic4c@erau.edu | Posted on: 12/28/2009 10:21:42 PM | Views : 872

I have placed a button in my web application and would like tot know how to make it perform the following SQL command:
UPDATE Donations SET FromUser to @UserName WHERE DonationId = (SELECT MAX (BidCountHistory) FROM BidCountHistory)
 Currently when I double click the button it takes me to the .vb file:
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
    End Sub
What all do I need to add here to make this SQL statement execute? I'm guessing the connection string and a whole buck of other stuff that I don't know what it does.
Thanks
...

Go to the complete details ...