开发者

Getting empty recordset for a particular column during code run

开发者 https://www.devze.com 2022-12-14 13:50 出处:网络
I开发者_StackOverflow社区 am using an Inline SQL statement Select * from table where column=\'\' in classic asp application. This is a dynamic sql. Based on the return values in the recordset I am dis

I开发者_StackOverflow社区 am using an Inline SQL statement Select * from table where column='' in classic asp application. This is a dynamic sql. Based on the return values in the recordset I am displaying some fields like checkboxes and text boxes. But this is working only if I put a breakpoint in specific / anywhere in the code file. while the code is running without any breakpoints actual results is not coming out.


Make sure that you use:

your_record_set_name.moveNext

Otherwise you won't be able to fetch any records.


What is the value of the Response.Buffer ?

Try setting this at the top of your asp page.

<%  Response.Buffer = True  %>

And you do have

<%  Option Explicit %>

at the top of your page, no ? Just to make sure you made no typo's somewhere in your code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号