@steveg48
yeah, it's still incompatible. none of what you are saying (except the session variable) makes sense in ASP classic. You can't have a linkbutton in ASP classic, let alone a command argument, so what you are trying to do is absolutely impossible. unless you are trying something in ASP.NET and mistakenly posted it in the ASP classic forum, and mistakenly posted code with ASP tags...
Are you trying to have the user click a button and have a value sent to a subroutine? If so, that is impossible in both ASP classic and ASP.NET. Consider that the subroutine containing the code is handled on the server BEFORE it is sent to the browser (and it doesn't exist on the browser), and the button is clicked AFTER it is sent to the browser. Does that make sense?
So first decide if you are using ASP classic (which doesn't recognize linkbuttons period, but you posted in the ASP classic forum) or if you are using ASP.NET (which still can't handle button clicks directly) and I will try to point you to a way through your issue.
Jared