开发者

Getting empty recordset for a particular column during code run

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜