I am having some trouble trying to pull the latest row from SQL tables. The user can fill out an expense form and the data from the ASP.NET text boxes gets sent to the database, but when the user submits more data I cannot pull the latest data and populate the text boxes with that data. I am using a GUID as the ID fields. I have stored the userID
in the Session["New"]
.
Here's my SQL statement:
string str = "select * from CashFlow where userID='" + Session["New"].ToString() + "'";