RobColborne
MIS
Hi
Got an asp page that has a table which has hyperlinks to open a detailed info of the selected record. This is working in some instances.
Because I had problems I stripped down the ASP page to output the SQL query string and the number of records in the record set.
When I copy and paste the query into Query Analyser it works.
Because I have had problems previously, I think that the problem is related to the record ID having < > and other special characters.
I tried using Server.HTMLencode() but this did not work.
I have also outputted the record ID both with HTML encoding and as it is.
When the page works both of these values are the same because the ID doesn't contain any special characters.
But when it fails the output will be different:
With encoding: AGW7FVJ(<4[^\NZ
With out encodng: AGW7FVJ(<4[^\NZ
What has happened is clearly the < character has been converted to < which is probably causing the query to fail in finding any records.
But the SQL query string is correct. So I am stuck as to what to the problem is and what to do.
Thanks
Rob
Got an asp page that has a table which has hyperlinks to open a detailed info of the selected record. This is working in some instances.
Because I had problems I stripped down the ASP page to output the SQL query string and the number of records in the record set.
When I copy and paste the query into Query Analyser it works.
Because I have had problems previously, I think that the problem is related to the record ID having < > and other special characters.
I tried using Server.HTMLencode() but this did not work.
I have also outputted the record ID both with HTML encoding and as it is.
When the page works both of these values are the same because the ID doesn't contain any special characters.
But when it fails the output will be different:
With encoding: AGW7FVJ(<4[^\NZ
With out encodng: AGW7FVJ(<4[^\NZ
What has happened is clearly the < character has been converted to < which is probably causing the query to fail in finding any records.
But the SQL query string is correct. So I am stuck as to what to the problem is and what to do.
Thanks
Rob