2. AN ASP OBJECT IS SOMETHING THAT
TYPICALLY HAS
METHODS(determine the things one can
do with objects)
PROPERTIES(attribute that describes the
object)
COLLECTIONS(constitutes different sets
of key value pairs)
3. WORKING OF ASP OBJECTS
client
request
server
Request object
Response object
Session object
response
Server object
Asp error object
Application object
12. FORM COLLECTION:
Syntax:
Request.form(element)[(index)|.count)
Name of the form element
Used for selecting one of the
Multiple values. Eg.radiobutton
Elements or listbox elements
IT RETRIVES THE VALUES OF THE FORM ELEMENTS POSTED
TO HTTP REQUEST BODY,WITH A FORM USING POST METHOD
13. <body>
<form action="nextpage.asp" method="post">
<p>ENTER YOUR NAME:<input name="USERNAME"
size="20" type="text"></p>
<p>CHOOSE YOUR CITY:<select name="CITY">
<option>DELHI</option>
<option>BANGALORE</option>
<option>KOLKATTA</option>
</select>
<input type="submit"></p>
</form>
</body>
Elements
TextBox &
Dropdown list
that contain
values
14. WHEN SUBMIT BUTTON IS CLICKED THE
FORM IS POSTED TO ASP PAGE nextpage.asp
The following form data is sent back to
server(Remember post method)
USERNAME=Anamika&CITY=DELHI
These are the values which are entered in the text
box and selected from the dropdown list
15. NOW TO SHOW THESE VALUES IN THE NEXT
PAGE WE USE:
<body>
Welcome <%=Request.Form(“USERNAME”)%>
City Selected<%=Request.Form(“CITY”)%>
</body>
These are just the values captured from the form
elements of previous page
USERNAME=Anamika&CITY=DELHI