Re: Weird ASP Error

From: Peter Foti (peter_at_Idontwantnostinkingemailfromyou.com)
Date: 03/15/04


Date: Mon, 15 Mar 2004 13:35:52 -0500


"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



Relevant Pages

  • Re: locale errors
    ... With regards to it being asked previously; ... I understand that the "noise" and/or extra bandwidth that I used in ... and more presice to my dilemma, then if I had gone through google. ... I apologize now for being a giant, swarthy, uncouth, american. ...
    (Debian-User)
  • To Shenan,
    ... to be put into check in regards to your comment about using Google. ... Google for information. ... > Geddy Lee wrote: ... > How much RAM does your BIOS/post screen tell you that you have? ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Anyone know what "piiserviceO" is?
    ... listening on and connect to it to see what kind of header you get (if ... Regards, ... > noticed this “piiserviceO” in the processes list. ... > can’t find any info on it either at MSKB or via google searches. ...
    (Focus-Microsoft)
  • Re: Idiot spam attack on sci.lang
    ... Since when has Google, or anyone, a right to censor anything? ... I'll quite happily set up a new instant Yahoo group to replace this ... one, but I won't be moderator, or accept any responsibility if it's ...
    (sci.lang)
  • Re: Idiot spam attack on sci.lang
    ... Since when has Google, or anyone, a right to censor anything? ... one, but I won't be moderator, or accept any responsibility if it's ... Sorry to add to my own reply, but Yahoo Groups allow you to ...
    (sci.lang)