I have declared this variable in jquery
No, you haven't. That is plain JavaScript. It would still be JavaScript even if it made use of functions provided by the jQuery library, which it doesn't.
I want to use it in my Html page in my Html hepler parameter like this
That means you want to use it in you server side ASP code. You can't do that.
- The ASP generates some text.
- The text is sent to the browser.
- The ASP finishes running.
- The browser parses the text as HTML / JavaScript / CSS / etc
- The browser executes the JavaScript
At this stage the JavaScript is:
- Running on a different machine
- Running when the ASP has ended
You can't pass data back to the ASP that generated the page.
You could make a new HTTP request (by submitting a form, setting location.href, using Ajax, etc) to send some data to a new invocation of an ASP program.