This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
Overview
Download & View 1) Create Your Home Page In Html. In That Home as PDF for free.
3) Using HTML control create a student information for to collect student information line Name, Address, Phone, Email, Birth Date, Hobbies etc. Use appropriate control.
Main Program: Registration Form
REGISTRATION FORM
8) Create an ASP page to display time on server.
Main Program: <%@ Language=VBScript %> Time <% dim h h=hour(now()) response.write(now()) %>
9) Create an ASP page to illustrate the use of the buffer property of response object.
Main Program: (Buffer property = true) <%@ Language=VBScript %> <%response.Buffer=true%> <% Dim i,j Response.Write "it is: " & now() for i=1 to 500000 j=j+1 next Response.Write " it is: " & now() %>
Main Program: (Buffer property = false) <%@ Language=VBScript %> <%response.Buffer=false%> <% Dim i,j Response.Write "it is: " & now() for i=1 to 500000 j=j+1 next Response.Write " it is: " & now() %>
10) Create an ASP page to illustrate the use of FORM collection of Request Object.
Main Program: <%@ Language=VBScript %> <%Response.Write "Test= " & Request.Form("test")%> Simple Form Example C.asp… <%@language = vbscript%> <%option explicit%> <% dim a a=request.form("fname") response.cookies("name")=a response.write "thanks for searching" %> click here for show cookies on other page Registration2.asp… <%@language = vbscript%> <%option explicit%> <TITLE>search <% dim b b=request.cookies("name") %>
17) Create a HIT counter for your ASP page using an Application Object.
Main Program: <%@ Language = VBScript %> <% option explicit %> <% dim pageCount Application.lock Application("counter") = Application("counter") + 1 pageCount = Application("counter") Application.unlock Response.write("this page has been visited" & pageCount &" times.") %>