473,387 Members | 3,781 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,387 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
Nov 18 '05 #1
3 848
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

Nov 18 '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

Nov 18 '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

Nov 18 '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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
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,...

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.