I want to update a database with a session variable,
my current code is
InsertCommand="INSERT INTO [tblInventory] ([inventorydate], [branch_id], [cost], [amountin], [amountout], [Notes], [Company], [usedby], [checkedby], [inemp], [inputdate]) VALUES (@inventorydate, @ddlbranches.selectedvalue, @AmountIn, @AmountOut, @txtnotes,
@Company, @usedby, @checkedby, @cost, '" + Session["USER_NICKNAME"] + "', Date())"
But I get a parser error, to add this code is in the .aspx page and not the code behind page, do I need to re-write the whole update code and put it in the code behind page?
Thanks in Advance
ben
Go to the complete details ...