473,387 Members | 1,650 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.

No default member found

I have a collection class(exChain), for my Exception log which is getting
the following error:
************************************************** *************************
No default member found for type 'ExceptionLog'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.MissingMemberException: No default member found
for type 'ExceptionLog'.

Source Error:
Line 172: <asp:TemplateColumn HeaderText="">
Line 173: <ItemTemplate>
Line 174: <asp:LinkButton ID="FullName" Text='<%#
Container.DataItem("ExceptionID")%>' OnClick="GetApplicantDetails_Click"
runat="server"/>
Line 175: </ItemTemplate>
Line 176: </asp:TemplateColumn>
Source File:
C:\Inetpub\wwwroot\staffingworkshop\ADMINISTRATION \showExceptions.aspx
Line: 174

Stack Trace:
[MissingMemberException: No default member found for type 'ExceptionLog'.]
Microsoft.VisualBasic.CompilerServices.LateBinding .LateIndexGet(Object o,
Object[] args, String[] paramnames) +1370
ASP.showExceptions_aspx.__DataBind__control7(Objec t sender, EventArgs e)
in
C:\Inetpub\wwwroot\staffingworkshop\ADMINISTRATION \showExceptions.aspx:174
System
************************************************** ************************************************** I don't know what could cause this:I have the statement: gridExceptionChain.DataSource = ExChain gridExceptionChain.DataBind()and my DataGrid is: <asp:DataGrid ID="gridExceptionChain" runat="server"AutoGenerateColumns="False" CellPadding=3> <HeaderStyle HorizontalAlign="Left" BackColor="Gainsboro" /> <Columns> <asp:TemplateColumn HeaderText=""> <ItemTemplate> <asp:LinkButton ID="FullName" Text='<%#Container.DataItem("ExceptionID")%>' OnClick="GetApplicantDetails_Click"runat="server"/> </ItemTemplate> </asp:TemplateColumn> </Columns> </asp:DataGrid>Is it something having to do with a collection?Thanks,Tom

Feb 8 '06 #1
1 4034
This works fine if I change the TemplateColumn to a BoundColumn. The
problem is I need the templatecolumn so I can set up a LinkButton.

I set up Datagrids all the time this way, why wouldn't it work here? Is it
because I am using a collection as opposed to a Dataset or Datareader?

Thanks,

Tom

"tshad" <ts**********@ftsolutions.com> wrote in message
news:Os*************@TK2MSFTNGP12.phx.gbl...
I have a collection class(exChain), for my Exception log which is getting
the following error:
************************************************** *************************
No default member found for type 'ExceptionLog'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.MissingMemberException: No default member found
for type 'ExceptionLog'.

Source Error:
Line 172: <asp:TemplateColumn HeaderText="">
Line 173: <ItemTemplate>
Line 174: <asp:LinkButton ID="FullName" Text='<%#
Container.DataItem("ExceptionID")%>' OnClick="GetApplicantDetails_Click"
runat="server"/>
Line 175: </ItemTemplate>
Line 176: </asp:TemplateColumn>
Source File:
C:\Inetpub\wwwroot\staffingworkshop\ADMINISTRATION \showExceptions.aspx
Line: 174

Stack Trace:
[MissingMemberException: No default member found for type 'ExceptionLog'.]
Microsoft.VisualBasic.CompilerServices.LateBinding .LateIndexGet(Object
o, Object[] args, String[] paramnames) +1370
ASP.showExceptions_aspx.__DataBind__control7(Objec t sender, EventArgs e)
in
C:\Inetpub\wwwroot\staffingworkshop\ADMINISTRATION \showExceptions.aspx:174
System
************************************************** ************************************************** I
don't know what could cause this:I have the statement:
gridExceptionChain.DataSource = ExChain
gridExceptionChain.DataBind()and my DataGrid is: <asp:DataGrid
ID="gridExceptionChain" runat="server"AutoGenerateColumns="False"
CellPadding=3> <HeaderStyle HorizontalAlign="Left"
BackColor="Gainsboro" /> <Columns>
<asp:TemplateColumn HeaderText=""> <ItemTemplate>
<asp:LinkButton ID="FullName"
Text='<%#Container.DataItem("ExceptionID")%>'
OnClick="GetApplicantDetails_Click"runat="server"/>
</ItemTemplate> </asp:TemplateColumn> </Columns>
</asp:DataGrid>Is it something having to do with a collection?Thanks,Tom

Feb 8 '06 #2

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

Similar topics

10
by: Edward Diener | last post by:
Is the default 'false' for the CLSCompliant attribute at the assembly level ? Are there any tools to check for CLS compliance for the various NET languages ?
4
by: Steven T. Hatton | last post by:
I mistakenly set this to the comp.std.c++ a few days back. I don't believe it passed the moderator's veto - and I did not expect or desire anything different. But the question remains: ISO/IEC...
2
by: Gary | last post by:
Hi, I am a Chinese student, I have a problem with the following code //The follwing code in StaticSearch.h: // template <class Type> class dataList; // template <class Type> class Node ...
16
by: Steven T. Hatton | last post by:
As far as I know, there is no way to provide a default value for the argument to the constructor A::A(char (&array)) in this example. Correct? struct A{ A(char (&array) ){...
5
by: Hendrik Schober | last post by:
Hi, we just run into the problem, that "default" alignment in the project properies dialog seem to be different. We have a project that's a DLL, which is linked with a couple of LIBs. All are...
1
by: Tim::.. | last post by:
Can some one please tell me why I'm getting this error! I presume it is because there is something wrong with my Database connection but am not really sure what! Thanks ...:: Error ::.....
5
by: Martijn van Buul | last post by:
Hi. I'm having a peculiar problem at work. I've been googling for it, but haven't found an authorative answer. In a nutshell (Long story follows), what I'd like to know is: If I have a C++...
23
by: Jess | last post by:
Hello, I understand the default-initialization happens if we don't initialize an object explicitly. I think for an object of a class type, the value is determined by the constructor, and for...
4
by: Jess | last post by:
Hello, I tried several books to find out the details of object initialization. Unfortunately, I'm still confused by two specific concepts, namely default-initialization and...
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: 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
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...
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.