473,320 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

My function name not being declared error

I'm trying to use a helper function in code behind inside a datalist
control . Below is my page directive:

<%@ Page Language="VB" Codebehind="datehelp.aspx.vb" debug="true"%>

...then i am wrapping helper function call around the variable I want
to parse from:

<ItemTemplate>

<%# checknulldate(DataBinder.Eval(Container.DataItem, "showdate")) %>
</ItemTemplate>
....but I keep getting a "checknulldate not declared" error. Am I
calling it wrong?

chumley
Jul 21 '05 #1
3 1346
Everything looks good Chumley....if this was c#, it could be a case
issue...other than that my best guess is that the codebehind hasn't been
recompiled??

Karl

"Chumley the Walrus" <sp*******@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
I'm trying to use a helper function in code behind inside a datalist
control . Below is my page directive:

<%@ Page Language="VB" Codebehind="datehelp.aspx.vb" debug="true"%>

..then i am wrapping helper function call around the variable I want
to parse from:

<ItemTemplate>

<%# checknulldate(DataBinder.Eval(Container.DataItem, "showdate")) %>
</ItemTemplate>
...but I keep getting a "checknulldate not declared" error. Am I
calling it wrong?

chumley

Jul 21 '05 #2
I believe that checknulldate should be public or protected.
If the parameter to checknulldate is a DateTime you my need to cast the
result of DataBinder.Eval, like so:

<%# checknulldate((DateTime)DataBinder.Eval(Container. DataItem, "showdate"))
%>

"Chumley the Walrus" wrote:
I'm trying to use a helper function in code behind inside a datalist
control . Below is my page directive:

<%@ Page Language="VB" Codebehind="datehelp.aspx.vb" debug="true"%>

...then i am wrapping helper function call around the variable I want
to parse from:

<ItemTemplate>

<%# checknulldate(DataBinder.Eval(Container.DataItem, "showdate")) %>
</ItemTemplate>
....but I keep getting a "checknulldate not declared" error. Am I
calling it wrong?

chumley

Jul 21 '05 #3
I thought the same thing...CheckNullDate needs to be anything but
private..but the error message would specific to either case you point out.

Karl

"Brad Quinn" <Br*******@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
I believe that checknulldate should be public or protected.
If the parameter to checknulldate is a DateTime you my need to cast the
result of DataBinder.Eval, like so:

<%# checknulldate((DateTime)DataBinder.Eval(Container. DataItem, "showdate")) %>

"Chumley the Walrus" wrote:
I'm trying to use a helper function in code behind inside a datalist
control . Below is my page directive:

<%@ Page Language="VB" Codebehind="datehelp.aspx.vb" debug="true"%>

...then i am wrapping helper function call around the variable I want
to parse from:

<ItemTemplate>

<%# checknulldate(DataBinder.Eval(Container.DataItem, "showdate")) %>
</ItemTemplate>
....but I keep getting a "checknulldate not declared" error. Am I
calling it wrong?

chumley

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Piotre Ugrumov | last post by:
I have declared some function virtual, but when I call this function I have errors. In a class Simulator I have defined this: Nave *navi; The virtual function is the function modifica(). I call...
10
by: sjbrown8 | last post by:
I have the piece of code below, and when i try compiling with the line g++ 753075304.cpp I get the following error message: 753075304.cpp: In function 'int main()': 753075304.cpp:29: error:...
6
by: Bill Rubin | last post by:
The following code snippet shows that VC++ 7.1 correctly compiles a static member function invocation from an Unrelated class, since this static member function is public. I expected to compile the...
10
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal...
0
by: Frank | last post by:
Short Version of Question: Can anyone provide an example of how I should embed the ActiveX and license, and then use it in a function?
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
28
by: Bill | last post by:
Hello All, I am trying to pass a struct to a function. How would that best be accomplished? Thanks, Bill
5
by: gdarian216 | last post by:
can I pass grades.projects in my function call that is void get_scores(ifstream& infile, int num_scores, grades.projects) and the function would look like void get_scores(ifstream& infile, int...
7
by: Sheldon | last post by:
Hi, This is a simple mistake so Iam sure there is someone who can help with it: The the file.h: #define IBFLEN 50000 int IRET, ILEN, IUNIT1, IUNIT2, ILOOP, KERR;
13
by: mohi | last post by:
hello everyone, i use a function called minor to find the minor of an element of a matrix , i declare it as : float minor(float A,int m,int n,int i,int j);//find the minor in A and define...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.