SERVICES

CRYSTAL COMPUTER CONCEPTS

TAXES Computer for Tax Organization TECHNOLOGY

DELAWARE'S   ·      MIDDLETOWN  ·     ODESSA  ·    TOWNSEND AREA

What is your query? Search Here:

This is how the ASP is coded to accomplish the search.

Some might consider this an Advanced Use of the Response Intrinsic Object

<% @LANGUAGE = VBScript  %>
<%
' Note that the ASP VBScript is running before the html is read
' Variable should be declared before they are called
' This page looks at what you typed as search in the form
' Specifically, the name of the element input, type text is passed
' It places that search in a QueryString for the current page
' The string is URLEncoded so it can be recognized by thru- 
'            the Browser's address bar 
' Next, it redirects to Yahoo

Dim URLredirectTo, strSearch
strSearch = Trim(Request.QueryString("Search"))

If (Len(strSearch)) Then
	strSearch  = Server.UrlEncode(strSearch)
	URLredirectTo = "http://search.yahoo.com/bin/search"
	URLredirectTo = URLredirectTo & "?p="  & strSearch
	Response.Redirect URLredirectTo
%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 		

Return to Table of Contents


DELAWARE'S MIDDLETOWN ODESSA AND TOWNSEND AREA