Re: Weird ASP Error
From: HelLind (u8712123_at_cc.nctu.edu.tw)
Date: 03/16/04
- Next message: Chris Hohmann: "XML to SQL from ASP"
- Previous message: HelLind: "Re: Weird ASP Error"
- In reply to: Peter Foti: "Re: Weird ASP Error"
- Next in thread: Jeff Cochran: "Re: Weird ASP Error"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Chris Hohmann: "XML to SQL from ASP"
- Previous message: HelLind: "Re: Weird ASP Error"
- In reply to: Peter Foti: "Re: Weird ASP Error"
- Next in thread: Jeff Cochran: "Re: Weird ASP Error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|