How to write a script?

A script is a program that creates a specific “script” or sequence of events that will occur in response to some user action or server command. Scripts can significantly save time on creating a program, application or website, but can slightly slow down their work.

In this article we will explain how to write scripts based on one of the most popular JQuery programming languages ​​now, and also write about how to use scripts in ASP. NET.


JQuery is the most concise and concise JavaScript-based programming language that simplifies working with HTML documents: with events, animation, as well as asynchronous JavaScript and XML. His fundamentally new approach to web programming, which can significantly reduce the time to manufacture the site, has already been loved by many programmers and its popularity continues to grow.

To start working with this programming language, you will first need to download the library from the official site. Then you can start creating scripts.For example, create a script that will display the phrase "Hello World" in the browser:

  • <html>
  • <head>
  • <title>jQuery Hello World</title>
  • <script type="text/javascript" src="jquery-1. 2. 6. min. js"></script>
  • </head>
  • <body>
  • <script type="text/javascript">
  • $ (document). ready (function () {
  • $ ("# msgid"). html ("This is Hello World by jQuery");
  • });
  • </script>
  • This is Hello World by HTML
  • <div id="msgid">
  • </div>
  • </body>
  • </html>

When you open this script in the browser, you will see a web page with the name of the document itself from the jQuery Hello World header, which will display the text of the two prescribed scripts: This is Hello World by jQuery and This is Hello World by HTML. The <script type = "text / javascript"> src = "jquery-1. 2. 6. min. Js"> </ script> line is used to connect the library itself, but be careful, as your version of the file may be different. To correctly register the file name, go to the appropriate site directory: public_html / javascript / jQuery / filename. js.

Asp. NET

Asp. NET is a web programming technology from Microsoft, which allows you to use codes written in any programming language made on a software platform in your work. NET Framework from Microsoft.

Manuals how to write a script in ASP. NET, there is no and can not be, because this application uses ready-made script libraries MicrosoftAjax. js and MicrosoftMvcAjax. js or scripts written in other programming languages.