ASP (assuming you are using VBScript) is on the server side, the client scripting (assuming you are using Javascript) is on the client side, they run in different places. To ASP, those client-side javascript code are meaningless plain text, how can you use them??