Sunday, July 17, 2011

How we use the Syntax with ASP Script

You may in addition separate code from script using a greater quantity traditional, HTML lime syntax. Using the way , the code begins with a add to and ends with a tag. To use the syntax with ASP script. If you terminate not include the text, the server wish ignore the script, but the browser demise try to execute the script on the client side. In other words, tags by default delimit client faction script.

To force the ASP weapon to process script as server verge code, you must add the predicate. My advice is not to exercise the syntax it is too comfortable to confuse the syntax and case unnecessary errors. Use the bracket percent delimiters in the room.

In some editors, like Home Site, FrontPage, and Visual InterDev, the annotator will change the text color the script between the bracket percent delimiters, which be possible to help you differentiate script from HTML. How/When Does the Server Process Script? When the server invokes the ASP scripting weapon, it first parses the file and inserts and includes files.

It in consequence collects the script portion by discovery all the script delimiters. The ASP machine treats all non script content in the same manner with strings that it writes verbatim back to the henchman. Next, the scripting engine creates variables and apparent components invoked by the script. Finally, it begins interpreting the script, executing either command and sending results to the retainer .

At the completion of script processing, the scripting weapon destroys variables and external components created during the term of the script. If the result were buffered, the server returns the ~ment of the buffer to the person represented.

How Does the Browser Act by ASP Sites? This is important inasmuch as it is one of the ~ numerous common misconceptions of beginning ASP programmers. The browser has ~t any concept of ASP sites, HTML sites, or at all other kind of site.

The browser is completely, utterly, and totally illiterate of the way a server processes its requests. To a browser, there is no difference between an ASP page and an HTM file. Browsers work not request specific kind of appease they just request that the colloquy with the server follows one of the ensign communications protocols.

What is XHTML? You be aware of that XHTML is extensible HTML, moreover what that means to the mean proportion Web author is not readily ostensible. If you recall your HTML, narration, you will remember that HTML is based up~ the body SGML. XHTML, on the other employee, is an application of XML, the extensible markup language. While XML is in like manner based upon SGML, the result is something entirely different.

Where HTML defines elements and attributes that are to have existence rendered in a specified manner, XML provides a skeleton for defining other languages. Instead of conscious constrained to paragraphs, lists, and tables, you be possible to define elements just for names, suit, telephone numbers, part numbers, or structures representing deserved about anything you can think of.

Yet through all the structural freedom found in XML, programmers and authors always need to provide information best suited to foundation documents structures. That is where XHTML comes in.

No comments: