Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<title>A very simple ASP Page</title>
</head>
<body>
<p>Hello, world.</p>
</body>
</html>
<%@LANGUAGE=JScript%>
<%
var strHello = "Hello, world.";
%>
<html>
<head>
<title>A very simple ASP Page</title>
</head>
<body>
<%
Response.Write("<p>" + strHello + "</p>");
%>
</body>
</html>
<%@LANGUAGE=VBScript%>
<%
Dim strHello
strHello = "Hello, world."
%>
<html>
<head>
<title>A very simple ASP Page</title>
</head>
<body>
<%
Response.Write "<p>" & strHello & "</p>"
%>
</body>
</html>
<%@LANGUAGE=JScript%>
<%
var strParam = Request.QueryString("country");
var strHello = "";
if (strParam == null) {
// The query paramter is undefined
strParam = "uk";
}
%>
<html>
<head>
<title>ASP</title>
</head>
<body>
<%
switch (strParam.toLowerCase()) {
case "usa":
strHello = "Hey, dudes.";
break;
case "france":
strHello = "Bonjour, tout le monde.";
break;
case "uk":
default:
strHello = "Hello, world.";
break;
}
Response.Write("<p>" + strHello + "</p>");
%>
</body>
</html>
<%@LANGUAGE=VBScript%>
<%
Dim strParam
Dim strHello
strParam = Request.QueryString("country")
strHello = ""
If (strParam = "") Then
' The query paramter is undefined
strParam = "uk"
End If
%>
<html>
<head>
<title>ASP</title>
</head>
<body>
<%
Select Case (LCase(strParam))
Case "usa"
strHello = "Hey, dudes."
Case "france"
strHello = "Bonjour, tout le monde."
Case "uk"
strHello = "Hello, world."
Case Else
strHello = "Hello, world."
}
Response.Write "<p>" & strHello & "</p>")
%>
</body>
</html>
<%
var x = "This is the server";
function myFunc() {
return x;
}
%>
<script type="text/javscript">
var x = "This is the client";
function myFunc() {
return x;
}
</script>
<body>
<p onclick="window.alert(myFunc());">Click</p>
</body>
<p><%=myVar%></p>
<p>
<%
Response.Write(myVar);
%>
</p>