






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
E-Commerce is taking over the traditional commerce practices. It is of special concern for the IT students. Following are the key points of these Lecture Slides : Parameters, Search Parameters, Hyper Links, Operation, Page Navigation, Per Page, Display, Back Color, Attribute String, Maintaining Databases
Typology: Slides
1 / 10
This page cannot be seen from the preview
Don't miss anything!







we^ create
the^ local
variables
from^ BOTH
the
' querystring
()^ and^ form ()^ Arguments
by^ using
the^ shortcut
notation.
SEARCH=Trim(request("SEARCH"))'The numeric
ones^ demonstrate
a^ trick
for^ converting
to^ a^ number
quickly
FLAG=cInt("0"
&^ Trim(request("FLAG"))
PAGE=cInt("0"
&^ Trim(request("PAGE"))
C1=cInt("0" &
Trim(request("C1")) ) C2=cInt("0" &
Trim(request("C2")) ) C3=cInt("0" &
Trim(request("C3")) ) 'If^ no^ flags^ are
selected
default to title.
If^ (C^
then^ C1=
'Create a^ QueryString
for^ use
in^ the paging
hyperlinks
myRETURN
=^ MakeReturn(SEARCH,C1,C2,C3)
'F(X)^ To
make^ the
arguments for
the^ hyperlinks
(called
the^ return
in^ this
example)
Function
MakeReturn(SearchText,
MakeReturn
="&C1="
"&C2="
"&C3="
"&SEARCH="
&^ SearchText
Exit^ Function End^ Function
Function DoNav(myReturn,myPage,MaxPage)dim^ sretsRet = ""sRet = sRet & ""
sRet = sRet & "New Search" sRet = sRet & "Top of Page" if^ myPage^
> 1 thensRet = sRet & "First Page" else
sRet = sRet & " " end^ ifsRet = sRet & "myPage " & myPage &" of " & MaxPage & "" if^ myPage^
> 1 thensRet = sRet & "Previous " & cRECMAX & "" else
sRet = sRet & " " end^ ifif^ myPage^
< MaxPage ThensRet = sRet & "Next " & cRECMAX & "" else
sRet = sRet & " " end^ ifsRet = sRet & ""DoNav^ = sRetexit functionEnd^ Function