ASP call Crystal and Store Procedure (6)

Source: Internet
Author: User
' Rptserver.asp
Case "SRCH"
Call Retrieveobjects
Call Checkforerror
' Create page variable
Gvpagenumber = CInt (PAGE)

Select Case VFMT
Case "ENCP"
If Gopagegenerator.findtext (TEXT, 0, Gvpagenumber) then
Response.ContentType = Emfmimetype
Session ("OEMF"). Sendpagenumberrecord (Gvpagenumber)
Else
Gserrortext = "The specified text, '" & Text & "' is not found in the"
Response.ContentType = Emfmimetype
Session ("OEMF"). Senderrormsg, Gserrortext
End If
Case "Html_frame"
' We are being called by HTML Viewer
' Need to get the text ' form post
Dim searchfound
Text = Request.Form ("text")
' Now find out what page the ' text was on
Tempnumber = Gvpagenumber + 1
If (CBool (Gopagegenerator.findtext (TEXT, 0, Tempnumber)) then
Session ("Currentpagenumber") = Tempnumber
Searchfound = 1
Else
Session ("Currentpagenumber") = Gvpagenumber
Searchfound = 0
End If
If Brch <> "" Then
Gvurl = "framepage.asp?brch=" & Brch & "&searchfound=" & Searchfound
Else
Gvurl = "framepage.asp?" Searchfound= "& Searchfound
End If
Response.Redirect Gvurl
Case "Html_page"
' We are being called by HTML Viewer
' Need to get the text ' form post
Text = Request.Form ("text")
' Now find out what page the ' text was on
Tempnumber = Gvpagenumber
If (CBool (Gopagegenerator.findtext (TEXT, 0, Tempnumber)) then

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.