help me with EOF

Results 1 to 2 of 2

Thread: help me with EOF

  1. #1
    aia Guest

    Default help me with EOF

    what i am trying to do is figure out whether a person&#039s name is in my db, if not i wish to add him.<BR>i am having problems with this line-<BR><BR>If rc.EOF=False Then &#039means if the person is listed<BR>response.redirect certainpage.asp <BR>Else<BR>add name to db & place cookies.<BR>Please help!<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Nothing wrong with what you show...

    ...if it is not working, you have some other bug.<BR><BR>What problem are you seeing?<BR><BR>Incidentally, you don&#039t really need to use ELSE here.<BR><BR>Once you redirect, you have left the page. So you could just do<BR><BR>&#060;%<BR>If Not rc.EOF Then Response.Redirect "certainpage.asp"<BR>&#039<BR>&#039 no ELSE or END IF! If you get here, add name to db, etc.<BR>...<BR>%&#062;<BR><BR>(I showed Not rc.EOF as an alternative, but I don&#039t see how it could matter.)<BR><BR>ANYWAY...<BR><BR>Maybe you need to show more code???<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts