No default member found

T

tshad

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(Object 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
 
T

tshad

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top