PC Review


Reply
Thread Tools Rate Thread

Checking For Null DB Fields

 
 
Troy
Guest
Posts: n/a
 
      21st Aug 2003
After binding my data to the datalist I have created this function. I am
recieving an error:

BC30289: Statement cannot appear within a method body. End of method
assumed.

Does anyone have any clue what is going on here?
---------------------------------------------
Function cnCustBullet15(ByVal CustBullet15 As String) as String
If IsDBNull(CustBullet15)
Return "<tr><td>NULL VALUE</td></tr>"
Else
Return "<tr><td>" & CustBullet15 & "</td></tr>"
End If
End Function


<aspatalist id="customers" runat="server">
<HeaderTemplate>
<table border="0">
</HeaderTemplate>
<ItemTemplate>
<%# cnCustBullet15(Container.DataItem("CustBullet15"))%>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</aspataList>


--
Thanks!

Troy





 
Reply With Quote
 
 
 
 
Troy
Guest
Posts: n/a
 
      21st Aug 2003
Both of those were correct answers. Thank you. However, I am getting the
same error. Any other clues?

--
Thanks!

Troy



"Troy" <devteam.at.cyberwarehouse.com> wrote in message
news:(E-Mail Removed)...
> After binding my data to the datalist I have created this function. I am
> recieving an error:
>
> BC30289: Statement cannot appear within a method body. End of method
> assumed.
>
> Does anyone have any clue what is going on here?
> ---------------------------------------------
> Function cnCustBullet15(ByVal CustBullet15 As String) as String
> If IsDBNull(CustBullet15)
> Return "<tr><td>NULL VALUE</td></tr>"
> Else
> Return "<tr><td>" & CustBullet15 & "</td></tr>"
> End If
> End Function
>
>
> <aspatalist id="customers" runat="server">
> <HeaderTemplate>
> <table border="0">
> </HeaderTemplate>
> <ItemTemplate>
> <%# cnCustBullet15(Container.DataItem("CustBullet15"))%>
> </ItemTemplate>
> <FooterTemplate>
> </table>
> </FooterTemplate>
> </aspataList>
>
>
> --
> Thanks!
>
> Troy
>
>
>
>
>



 
Reply With Quote
 
Jeremy Cowles
Guest
Posts: n/a
 
      21st Aug 2003
"Troy" <devteam.at.cyberwarehouse.com> wrote in message
news:(E-Mail Removed)...
> Both of those were correct answers. Thank you. However, I am getting the
> same error. Any other clues?
>


I have to assume that is is an ASP specific problem, in which case, I would
ask the ASP.NET Group:

microsoft.public.dotnet.framework.aspnet


~
Jeremy

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking a forms fields for null Mark Microsoft Access Form Coding 1 27th May 2010 10:09 PM
Checking for, then listing Null/empty fields in a message box Mike Sabino Microsoft Access Forms 0 11th Nov 2009 07:26 PM
Checking for any null fields Jennifer Microsoft Access Queries 8 5th Oct 2009 09:06 PM
Checking for null fields before running query =?Utf-8?B?SnVhbiBDb3JyZWE=?= Microsoft Access VBA Modules 7 25th Jul 2007 04:48 PM
Checking For Null DB Fields Troy Microsoft ASP .NET 2 21st Aug 2003 09:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 AM.