I have the following code in my HEAD section of my .net page.
I am a total newbie on .net but have been in php for a while so I understand variables and a little code.
Session["NewID"] = @DescID;
SqlCommand("@DescID = SCOPE_IDENTITY()");
I'm using an INSERT query to insert the record and carry the new session variable to the next page to post it there and insert it into the database.
I'm getting this error:
Compiler Error Message: CS0103: The name 'DescID' does not exist in the current context
Also, when I get this part working, how do you display the session variable on the next page to retrieve it? Thanks everyone!