473,587 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.MissingM emberException: No default member found
for type 'ExceptionLog'.

Source Error:
Line 172: <asp:TemplateCo lumn HeaderText="">
Line 173: <ItemTemplate >
Line 174: <asp:LinkButt on ID="FullName" Text='<%#
Container.DataI tem("ExceptionI D")%>' OnClick="GetApp licantDetails_C lick"
runat="server"/>
Line 175: </ItemTemplate>
Line 176: </asp:TemplateCol umn>
Source File:
C:\Inetpub\wwwr oot\staffingwor kshop\ADMINISTR ATION\showExcep tions.aspx
Line: 174

Stack Trace:
[MissingMemberEx ception: No default member found for type 'ExceptionLog'.]
Microsoft.Visua lBasic.Compiler Services.LateBi nding.LateIndex Get(Object o,
Object[] args, String[] paramnames) +1370
ASP.showExcepti ons_aspx.__Data Bind__control7( Object sender, EventArgs e)
in
C:\Inetpub\wwwr oot\staffingwor kshop\ADMINISTR ATION\showExcep tions.aspx:174
System
*************** *************** *************** *************** *************** *************** **********I don't know what could cause this:I have the statement: gridExceptionCh ain.DataSource = ExChain gridExceptionCh ain.DataBind()a nd my DataGrid is: <asp:DataGrid ID="gridExcepti onChain" runat="server"A utoGenerateColu mns="False" CellPadding=3> <HeaderStyle HorizontalAlign ="Left" BackColor="Gain sboro" /> <Columns> <asp:TemplateCo lumn HeaderText=""> <ItemTemplate > <asp:LinkButt on ID="FullName" Text='<%#Contai ner.DataItem("E xceptionID")%>' OnClick="GetApp licantDetails_C lick"runat="ser ver"/> </ItemTemplate> </asp:TemplateCol umn> </Columns> </asp:DataGrid>Is it something having to do with a collection?Than ks,Tom

Feb 8 '06 #1
1 4040
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**********@f tsolutions.com> wrote in message
news:Os******** *****@TK2MSFTNG P12.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.MissingM emberException: No default member found
for type 'ExceptionLog'.

Source Error:
Line 172: <asp:TemplateCo lumn HeaderText="">
Line 173: <ItemTemplate >
Line 174: <asp:LinkButt on ID="FullName" Text='<%#
Container.DataI tem("ExceptionI D")%>' OnClick="GetApp licantDetails_C lick"
runat="server"/>
Line 175: </ItemTemplate>
Line 176: </asp:TemplateCol umn>
Source File:
C:\Inetpub\wwwr oot\staffingwor kshop\ADMINISTR ATION\showExcep tions.aspx
Line: 174

Stack Trace:
[MissingMemberEx ception: No default member found for type 'ExceptionLog'.]
Microsoft.Visua lBasic.Compiler Services.LateBi nding.LateIndex Get(Object
o, Object[] args, String[] paramnames) +1370
ASP.showExcepti ons_aspx.__Data Bind__control7( Object sender, EventArgs e)
in
C:\Inetpub\wwwr oot\staffingwor kshop\ADMINISTR ATION\showExcep tions.aspx:174
System
*************** *************** *************** *************** *************** *************** **********I
don't know what could cause this:I have the statement:
gridExceptionCh ain.DataSource = ExChain
gridExceptionCh ain.DataBind()a nd my DataGrid is: <asp:DataGrid
ID="gridExcepti onChain" runat="server"A utoGenerateColu mns="False"
CellPadding=3> <HeaderStyle HorizontalAlign ="Left"
BackColor="Gain sboro" /> <Columns>
<asp:TemplateCo lumn HeaderText=""> <ItemTemplate >
<asp:LinkButt on ID="FullName"
Text='<%#Contai ner.DataItem("E xceptionID")%>'
OnClick="GetApp licantDetails_C lick"runat="ser ver"/>
</ItemTemplate> </asp:TemplateCol umn> </Columns>
</asp:DataGrid>Is it something having to do with a collection?Than ks,Tom

Feb 8 '06 #2

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

Similar topics

10
387
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
4725
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 14882:2003(E) §8.5 says:   To zero-initialize an object of type T means: 5   -- if T is a scalar type (3.9), the object is set to the value of 0 (zero) converted to T;
2
3065
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
2547
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) ){ std::copy(&array,&array,&_array); } char _array; };
5
3899
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 with the same solution. All had "Default" set in the "Struct Member Alignment" entry. After some assembler debugging we found out that a struct member that is a member function pointer in
1
4018
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 ::.. System.MissingMemberException: No default member found for type 'Boolean'. ...:: CODE ::.. Private Sub cmdSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click
5
3174
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++ class which has several virtual functions and several member variables, will the default copy constructor also copy the virtual table pointer, or will it merely do a (shallow) copy of the member variables? I'm using gcc 4.1.1
23
3643
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 the built-in types, the value is usually garbage. Is this right? However, I'm a bit confused about value-initialization, when does it happen, and what kind of values are assigned to objects?
4
3698
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 value-initialization. I think default-init calls default constructor for class objects and sets garbage values to PODs. Value-init also calls default constructor for class objects and sets 0s to POD types. This is what I've learned from the books (especially...
0
7924
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8219
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, 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...
1
7978
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,...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5722
isladogs
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...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2364
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
0
1192
bsmnconsultancy
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...

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.