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.Field s.Item("M_bio") .Value%>, it
displays the data, no problem.
When I used this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then
response.Write( "Testing")
End If %>
It displays 'testing', no probs.
But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then
response.Write( rslist.Fields.I tem("M_Bio").Va lue)
End IF %>
It displays nothing, the page shows no error. Does anyone know the
reason.
Help would be appreciated.
REgards
Roger 11 1457
What does this do?
<%
If rslist.Fields.I tem("M_bio").Va lue <> "" then
response.Write( rslist.Fields.I tem("M_Bio").Va lue)
Else
"Hmm empty value. Must be something else going on here."
End IF
%>
And do you have an On Error Resume Next in your code? If so, be sure you
comment it out while debugging.
Ray at work
"HelLind" <u8******@cc.nc tu.edu.tw> wrote in message
news:9a******** *************** ***@posting.goo gle.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.Field s.Item("M_bio") .Value%>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) End IF %>
It displays nothing, the page shows no error. Does anyone know the reason. Help would be appreciated. REgards Roger
"HelLind" <u8******@cc.nc tu.edu.tw> wrote in message
news:9a******** *************** ***@posting.goo gle.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.Field s.Item("M_bio") .Value%>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) 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.Fiel ds.Item("M_bio" ).Value) > 0 Then
Response.Write( "Testing")
End If
%>
Regards,
Peter Foti
On 15 Mar 2004 09:57:06 -0800, u8******@cc.nct u.edu.tw (HelLind)
wrote: 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.Field s.Item("M_bio") .Value%>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write (rslist.Fields. Item("M_Bio").V alue) End IF %>
It displays nothing, the page shows no error. Does anyone know the reason.
If it had a null value this would be expected. :)
Or I guess if it were a string of spaces. Have you tried debugging by
using Response.Writes in your IF/THEN segement? Something like:
<%
Response.Write rslist.Fields.I tem("M_bio").Va lue & "<br>"
If rslist.Fields.I tem("M_bio").Va lue <> "" then
Response.Write "Value is not empty<br>"
response.Write( rslist.Fields.I tem("M_Bio").Va lue)
End IF
%>
What does this produce:
IF isNull(rslist.F ields.Item("M_b io").Value) THEN
response.write "Value is Null"
ELSE
response.write "Value is not Null
END IF
The field may contain Null which is not equivalent to "" -----Original Message----- "HelLind" <u8******@cc.nc tu.edu.tw> wrote in message news:9a******* *************** ****@posting.go ogle.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.Field s.Item
("M_bio").Value %>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) 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.Fiel ds.Item("M_bio" ).Value) > 0 Then Response.Write( "Testing") End If %>
Regards, Peter Foti
.
"Jeff Cochran" wrote: It displays nothing, the page shows no error. Does anyone know the reason.
If it had a null value this would be expected. :)
Or I guess if it were a string of spaces...
For that matter, if you are viewing the output in a browser, the contents
could be viewable in the source but not displayed. I wonder how this turns
out:
Response.Write( Server.HTMLEnco de(rslist.Field s.Item("M_bio") .Value))
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
"Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in message news:<e5******* *******@TK2MSFT NGP09.phx.gbl>. .. What does this do?
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) Else "Hmm empty value. Must be something else going on here." End IF %>
And do you have an On Error Resume Next in your code? If so, be sure you comment it out while debugging.
There is no ON ERROR RESUME NEXT. I am using Ultradev code.
If i add ' Else Response.Write "hello" ' it doesnt' go to else. But If
i add 'response.write "hello' under the If statement, it does.
<%
If rslist.Fields.I tem("M_bio").Va lue <> "" then
response.Write( rslist.Fields.I tem("M_Bio").Va lue)
response.write "hello"
Else
'"Hmm empty value. Must be something else going on here."
response.write "test"
End IF
%>
It display "Hello" only. I F5 the page, even restarted the PC.
Thanks. :-)
Ray at work
"HelLind" <u8******@cc.nc tu.edu.tw> wrote in message news:9a******** *************** ***@posting.goo gle.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.Field s.Item("M_bio") .Value%>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) End IF %>
It displays nothing, the page shows no error. Does anyone know the reason. Help would be appreciated. REgards Roger
Perhaps you value is a space, which would not equal "" then.
<%
If rslist.Fields.I tem("M_bio").Va lue <> "" then
response.Write "DATAHERE" & (rslist.Fields. Item("M_Bio").V alue) &
"DATATHERE"
Else
'"Hmm empty value. Must be something else going on here."
response.write "test"
End IF
%>
What does that return?
DATAHEREDATATHE RE or DATAHERE DATATHERE. (Look in view-source for real
value.)
Ray at work
"HelLind" <u8******@cc.nc tu.edu.tw> wrote in message
news:9a******** *************** **@posting.goog le.com... "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
message news:<e5******* *******@TK2MSFT NGP09.phx.gbl>. .. What does this do?
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) Else "Hmm empty value. Must be something else going on here." End IF %>
And do you have an On Error Resume Next in your code? If so, be sure
you comment it out while debugging.
There is no ON ERROR RESUME NEXT. I am using Ultradev code.
If i add ' Else Response.Write "hello" ' it doesnt' go to else. But If i add 'response.write "hello' under the If statement, it does.
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) response.write "hello" Else '"Hmm empty value. Must be something else going on here." response.write "test" End IF %>
It display "Hello" only. I F5 the page, even restarted the PC.
Thanks. :-)
Ray at work
"HelLind" <u8******@cc.nc tu.edu.tw> wrote in message news:9a******** *************** ***@posting.goo gle.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.Field s.Item("M_bio") .Value%>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) End IF %>
It displays nothing, the page shows no error. Does anyone know the reason. Help would be appreciated. REgards Roger
"Peter Foti" <pe***@Idontwan tnostinkingemai lfromyou.com> wrote in message news:<10******* ******@corp.sup ernews.com>... "HelLind" <u8******@cc.nc tu.edu.tw> wrote in message news:9a******** *************** ***@posting.goo gle.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.Field s.Item("M_bio") .Value%>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) 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.Fiel ds.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.I tem("M_Bio").Va lue)
Below is the code:
<% If len(rslist.Fiel ds.Item("M_bio" ).Value) > 0 then
response.write "testing"
response.Write( rslist.Fields.I tem("M_Bio").Va lue)
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.I tem("M_Bio").Va lue) works.
Basically my code is MM Ultradev's listdetail code.
Thanks
Try putting the value in a temp variable before the if statement. There is
an old old problem with memo fields that is resolved that way. Also, if the
value is NULL that is not the same as an empty string.
strBio = rslist.Fields.I tem("M_bio").Va lue
If isnull(strBio) then strBio = ""
If strBio <> "" then
response.Write( strBio )
Else
"Hmm empty value. Must be something else going on here."
End IF
--
Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"HelLind" <u8******@cc.nc tu.edu.tw> wrote in message
news:9a******** *************** **@posting.goog le.com... "Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
message news:<e5******* *******@TK2MSFT NGP09.phx.gbl>. .. What does this do?
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) Else "Hmm empty value. Must be something else going on here." End IF %>
And do you have an On Error Resume Next in your code? If so, be sure
you comment it out while debugging.
There is no ON ERROR RESUME NEXT. I am using Ultradev code.
If i add ' Else Response.Write "hello" ' it doesnt' go to else. But If i add 'response.write "hello' under the If statement, it does.
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) response.write "hello" Else '"Hmm empty value. Must be something else going on here." response.write "test" End IF %>
It display "Hello" only. I F5 the page, even restarted the PC.
Thanks. :-)
Ray at work
"HelLind" <u8******@cc.nc tu.edu.tw> wrote in message news:9a******** *************** ***@posting.goo gle.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.Field s.Item("M_bio") .Value%>, it displays the data, no problem.
When I used this code: <% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( "Testing") End If %>
It displays 'testing', no probs. But when I run this code:
<% If rslist.Fields.I tem("M_bio").Va lue <> "" then response.Write( rslist.Fields.I tem("M_Bio").Va lue) End IF %>
It displays nothing, the page shows no error. Does anyone know the reason. Help would be appreciated. REgards Roger This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: redneck_kiwi |
last post by:
Hi all:
I have a really weird problem. I am developing a customer catalog
system for my company and as such have delved into sessions for
authentication and access levels. So far, I have managed to get a
working system just about finished.
I am building an interface for our customer service folks to use to
manage registered customers and am seeing some weird behavior.
|
by: NanQuan |
last post by:
I'm hoping someone can help me solve this error since I am at a total
loss here. Usually I don't bother posting on any forums or groups on
the internet and prefer to solve stuff myself but this is a total
mistery.
I have a function inside an ASP page as a result of which I get the
following error message:
Microsoft VBScript compilation error '800a03ea'
|
by: amit |
last post by:
I am trying to compile the sample program genwin.sqc, using nsqlprep
which is used to precompile embedded sql in C. I am getting weird
errors and that is because windows.h is included in the genwin.sqc
file. I am using
Setting the lib and include path:
set INCLUDE=C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\include;C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\Samples\esqlc;%include%
|
by: Kathy Houtami |
last post by:
Hi there
I've been encountered with weird compile error using Access 97.
The error message is "Member or data member is not found" and it
highlighted a line of code that has not be changed and has been
compiled with no error for days.
The code was Me.CircuitQualifier.Requery
|
by: gh0st54 |
last post by:
Hi
I have a weird javascript error that only happens on my live server
when i open the page http://www.imrated.co.uk/reg.aspx
i get the error 'Problems with this page ... blablabla
Line : 3
Char : 1
Error:Syntax error
| |
by: Alan Silver |
last post by:
Hello,
I have two weird problems here. I have a master page file that works
absolutely fine. When I load it up in VWD, I get a couple of weird (to
me) errors.
First, I get the error "Unrecognized tag prefix or device filter 'asp'"
on the third line shown below...
<head runat="server">
|
by: P Pulkkinen |
last post by:
Dear all,
sorry, i know this code is far little too long to debug here, but there is
really annoying logical error. If someone debugs this, I really offer warm
virtual handshake.
What this code SHOULD do:
- read new (=updated) licensetext from file $license_path
then
- read and modify recursively all files from $current_dir, replacing old
|
by: dtschoepe |
last post by:
Hi,
I am working on a project for school and I am trying to get my head
around something weird. I have a function setup which is used to get
an input from stdin and a piece of memory is created on the heap using
malloc. This input is then run through a regex and another test. The
result is passed back as a char pointer to the program for further
processing
The first time I call this function, it performs normally. However,
|
by: =?Utf-8?B?amVmZmVyeQ==?= |
last post by:
i need help with a combo box and this same code works on my first tab with a
combo box. The error or problem i have is this code causes an index out of
range error when i run it on my second combo box:
(errored code) Select Case ComboBox2.text
Case Is ="Execute Program"
'code to execute program here
Case Is ="Other Command that executes code at a certain time"
' code below the same as above except that it works
But not my first(this...
|
by: d3vkit |
last post by:
I recently had a friend pass along some web work for me; a simple update. I for some reason decided I would do some overhauling of the page (he had been doing straight html and I figured some php would make things MUCH more manageable, especially with the pictures).
So, I set to work doing what I normally do for all my site, create the index page with a switch to stick different content in the main part of the page depending on variables passed...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |