Re: Weird ASP Error

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: HelLind (u8712123_at_cc.nctu.edu.tw)
Date: 03/16/04


Date: 15 Mar 2004 20:01:10 -0800


"Peter Foti" <peter@Idontwantnostinkingemailfromyou.com> wrote in message news:<105btv8s4aj1haa@corp.supernews.com>...
> "HelLind" <u8712123@cc.nctu.edu.tw> wrote in message
> news:9a6fe908.0403150957.5fc340fe@posting.google.com...
> > Hello people,
> >
> > I am having a weird error and don't know what term to search in
> > google. Sorry to bother.
> >
> > There is data in my field "M_BIO"
> >
> > When I run this code <%=rslist.Fields.Item("M_bio").Value%>, it
> > displays the data, no problem.
> >
> > When I used this code:
> > <% If rslist.Fields.Item("M_bio").Value <> "" then
> > response.Write("Testing")
> > End If %>
> >
> > It displays 'testing', no probs.
> > But when I run this code:
> >
> > <% If rslist.Fields.Item("M_bio").Value <> "" then
> > response.Write(rslist.Fields.Item("M_Bio").Value)
> > End IF %>
> >
> > It displays nothing, the page shows no error. Does anyone know the
> > reason.
>
> I suspect it has a NULL value? Perhaps try this instead:
>
> <% If Len(rslist.Fields.Item("M_bio").Value) > 0 Then
> Response.Write("Testing")
> End If
> %>
>
> Regards,
> Peter Foti

Hi peter,

There seems nothing wrong with the IF statement, it goes inside the IF
statement. So the len > 0 is passed.

It does display Response.write "testing" but not
response.Write(rslist.Fields.Item("M_Bio").Value)

Below is the code:

<% If len(rslist.Fields.Item("M_bio").Value) > 0 then
response.write "testing"
response.Write(rslist.Fields.Item("M_Bio").Value)
else
response.write "hello"
End IF %>

It shows "testing" only but not the "m_bio" data.

I dont' think anything wrong with the "M_BIO" field becoz direct

response.Write(rslist.Fields.Item("M_Bio").Value) works.

Basically my code is MM Ultradev's listdetail code.

Thanks



Relevant Pages

  • Re: OT Pet Peeve
    ... I say to myself, why bother. ... That is the single most important reason I bother posting on the unmoderated newsgroup as opposed to putting the same energy into a moderated discussion board. ... Google doesn't index most of the message boards, either, particularly those that use databases to store messages. ...
    (alt.support.diabetes)
  • Re: apt-get install synaptic / sources.list
    ... to many that some users don't bother _READING_ anywhere. ... Google is your friend, as is browsing the archives of the mailing list. ... Andrew I'm sure you get a lot of threads where people haven't bothered looking. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Ecclesiastical Agronomy
    ... look at Google, but I wouldn't bother if I were you." ... Your poetry is definitely improving! ...
    (uk.rec.humour)
  • Re: How many use Google Groups here
    ... Google makes it's money primarily from ads. ... as they have no news server available; now I just won't bother. ... Techies built the internet, incidentally. ...
    (comp.arch.embedded)
  • Re: NSORDER variable
    ... base60 wrote: ... If don't have any good advice in the subject why bother putting your ... dumbass, ignorant, pickle kissing, brokeback watching, hemoroid licking ... If you're not familiar with RTFM, you can find it in google, ...
    (comp.unix.aix)