View Single Post
  #2 (permalink)  
Old May 21st, 2004, 10:20 PM
happygv happygv is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have you defined the CONNECTION object and RECORDSET objects? Can you post that code too?

AFAIK, var is not a Keyword used to define a variable in ASP. Are you doing that using Javascript/jscript?

var oRs=.....

Regarding Request("alph")...

Please use
Code:
Response.write Request("alph")
to see if that prints the value as "a" when your querystring values is passed as "a"

I would suggest you to better use Request.QueryString("alph") instead of Request("alph").

If that prints the value as "a", then do a response.write for the sql statement.

Response.Write "SELECT * FROM COMPANY WHERE
COMPANY_IMAGEFOLDER LIKE '"& Request("alph") &"%' ORDER BY
COMPANY_IMAGEFOLDER"
Response.End 'To terminated the page being processed by IIS at this level, use

Copy Paste this in your Query window to see if that returns the expected result.

Let us know if you find any thing wierd.
Hope that helps.
Cheers!

-Vijay G
Reply With Quote