In our ASP tutorial, every example shows the hidden ASP source code. This will make it easier for you to understand how it works. Write Output to a Browser An ASP file normally contains HTML tags, just like an HTML file. However, an ASP file can also contain server scripts, surrounded by the delimiters <% [...]
Read More >>
All server controls must appear within a <form> tag, and the <form> tag must contain the runat=”server” attribute. ASP.NET Web Forms All server controls must appear within a <form> tag, and the <form> tag must contain the runat=”server” attribute. The runat=”server” attribute indicates that the form should be processed on the server. It also indicates [...]
Read More >>
Server controls are tags that are understood by the server. Limitations in Classic ASP The listing below was copied from the previous chapter: <html> <body bgcolor=”yellow”> <center> <h2>Hello W3Schools!</h2> <p><%Response.Write(now())%></p> </center> </body> </html> The code above illustrates a limitation in Classic ASP: The code block has to be placed where you want the output to [...]
Read More >>
A simple ASP.NET page looks just like an ordinary HTML page. Hello W3Schools To start learning ASP.NET, we will construct a very simple HTML page that will display “Hello W3Schools” in an Internet browser like this: Hello W3Schools! Hello W3Schools in HTML This code displays the example as an HTML page: <html> [...]
Read More >>
ASP.NET is easy to install. Just follow the instructions below. What You Need If you have a Beta version of ASP.NET installed, we recommend that you completely uninstall it! Or even better: start with a fresh Windows 2000 or XP installation! Windows 2000 or XP If you are serious about developing ASP.NET applications you should [...]
Read More >>
An Event Handler is a subroutine that executes code for a given event. ASP.NET – Event Handlers Look at the following code: <% lbl1.Text=”The date and time is ” & now() %> <html> <body> <form runat=”server”> <h3><asp:label id=”lbl1″ runat=”server” /></h3> </form> </body> </html> When will the code above be executed? The answer is: “You don’t [...]
Read More >>
Conditional statements are used to perform different actions based on different conditions. The JavaScript Switch Statement Use the switch statement to select one of many blocks of code to be executed. Syntax switch(n) { case 1: execute code block 1 break; case 2: execute code block 2 break; default: code to be executed if n [...]
Read More >>
Conditional statements are used to perform different actions based on different conditions. Conditional Statements Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. In JavaScript we have the following conditional statements: if statement – use this statement to [...]
Read More >>
Comparison and Logical operators are used to test for true or false. Comparison Operators Comparison operators are used in logical statements to determine equality or difference between variables or values. Given that x=5, the table below explains the comparison operators: Operator Description Example == is equal to x==8 is false x==5 is true === is exactly [...]
Read More >>
any modern websites shows videos. HTML5 provides a standard for showing them. Check if your browser supports HTML5 video Check Video on the Web Until now, there has never been a standard for showing video on a web page. Today, most videos are shown through a plugin (like flash). However, not all browsers have [...]
Read More >>