You are on page 1of 5

Practical 11

Aim: To study about ASP and Perform a simple program.

ASP and ASP.NET are server side technologies.

Both technologies enable computer code to be executed by an Internet server.

When a browser requests an ASP or ASP.NET file, the ASP engine reads the file, executes any
code in the file, and returns the result to the browser.

Program:
<html>
<body>
<h1>Hello Web Pages</h1>
<p>The time is @DateTime.Now</p>
</body>
</html>

Output:
Practical 12

Aim: To study about Java-script and implement a simple program.


JavaScript is the scripting language of the web. If you have ever wanted to add simple
interactivity to web pages beyond links and without complicated server languages you will
want to learn JavaScript. It is supported by all modern browsers and is as ubiquitous as
HTML and CSS.

Program:
<!DOCTYPE html>

<html>

<body>

<h2>JavaScript in Body</h2>

<p id="demo"></p>

<script>

document.getElementById("demo").innerHTML = "My First JavaScript";

</script>

</body>

</html>

Output:
Practical 13

Aim: To Perform a simple Java-script operators program.

Program:
<!DOCTYPE html>

<html>

<body>

<h2>JavaScript Operators</h2>

<p>x = 5, y = 2, calculate z = x + y, and display z:</p>

<p id="demo"></p>

<script>

var x = 5;

var y = 2;

var z = x + y;

document.getElementById("demo").innerHTML = z;

</script>

</body>

</html>

Output :
Practical 14

Aim: To implement a simple java-script program of operators

Program:
<!DOCTYPE html>

<html>

<body>

<h2>The += Operator</h2>

<p id="demo"></p>

<script>

var x = 10;

x += 5;

document.getElementById("demo").innerHTML = x;

</script>

</body>

</html>

Output:
Practical 15

Aim: To perform a Java-script program of implementing functions.

Program:
<!DOCTYPE html>

<html>

<body>

<h2>JavaScript Functions</h2>

<p>This example calls a function which performs a calculation, and returns the result:</p>

<p id="demo"></p>

<script>

function myFunction(p1, p2) {

return p1 * p2;}

document.getElementById("demo").innerHTML = myFunction(4, 3);

</script>

</body>

</html>

Output:

You might also like