Tweet
One of the most often asked question in forums is "how do I pass an ASP variable to JavaScript?"
It is quite common to find out that people ask the question the other way round: "How do I pass a JavaScript variable to ASP?"
Ok, the two things are completely different and they involve completely different solutions.
First of all, let me explain something you might already know. ASP (or to be precise VBScript) is a server side language, while JavaScript is a client side language. The two work on different levels: ASP is executed before the page is completely loaded, while JavaScript works only after that. For that reason we cannot pass a JavaScript variable to ASP without reloading the page.
Showing posts with label variables. Show all posts
Showing posts with label variables. Show all posts
Tuesday, 16 April 2013
Tuesday, 15 January 2013
ASP: variables naming convention
Tweet
When naming variables in ASP, we should consider some conventions.
Because the way we write code is quite important for us and, possibly, other people, we do need to keep things as much readable as we can. That means, for example, we should use indents when writing procedures and functions or we should follow a common structure in code blocks.
In general we need to make things easy to read and understand.
That is why there are common naming convention for variables. And in this article we are going to explore them.
When naming variables in ASP, we should consider some conventions.
Because the way we write code is quite important for us and, possibly, other people, we do need to keep things as much readable as we can. That means, for example, we should use indents when writing procedures and functions or we should follow a common structure in code blocks.
In general we need to make things easy to read and understand.
That is why there are common naming convention for variables. And in this article we are going to explore them.
Subscribe to:
Posts (Atom)