CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 5/18/2005 1:49:43 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 229 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
josauro
Asp.Net User
Value of Type System.Collections.ArrayList cannot be converted To ...5/18/2005 1:49:43 PM

0

I have a problem to create a new info object to return result of storedprocedure

Where is the error.?

"Value of Type  System.Collections.ArrayList cannot be converted  To CasaSoft.DNN.Modules.Parceria.Business.EmpresaClienteInfo"

 

This error is in  (parceriacontroller.vb)

Public Function ListClienteParceria(ByVal CPA_PARCERIA As Integer) As EmpresaParceriaInfo

Return CType(CBO.FillCollection(DataProvider.Instance().ListCasaSoft_ClienteParceria(CPA_PARCERIA), GetType(EmpresaParceriaInfo)), EmpresaParceriaInfo)

End Function

 

 

follow the others declaration.

DataProvider.vb

Public MustOverride Function ListCasaSoft_ClienteParceria(ByVal CPA_PARCERIA As Integer) As IDataReader

SQLDataProvider.vb

Public Overrides Function ListCasaSoft_ClienteParceria(ByVal CAP_PARCERIA As Integer) As IDataReader

Return CType(SqlHelper.ExecuteReader(ConnectionString, DatabaseOwner & ObjectQualifier & "CasaSoft_ClienteParceriaList", CAP_PARCERIA), IDataReader)

End Function

 

 

EmpresaClienteInfo.vb

Imports System

Imports System.Collections

Imports System.Configuration

Imports System.Data

Namespace CasaSoft.DNN.Modules.Parceria.Business

Public Class EmpresaParceriaInfo

#Region "Private Members"

Dim _CPA_CODIGO As Integer

Dim _CPA_CLIENTE As Integer

Dim _CPA_PARCERIA As Integer

Dim _MEM_RAZAO_SOCIAL As String

#End Region

 

#Region "Public Properties"

Public Property CPA_CODIGO() As Integer

Get

Return _CPA_CODIGO

End Get

Set(ByVal Value As Integer)

_CPA_CODIGO = Value

End Set

End Property

Public Property CPA_CLIENTE() As Integer

Get

Return _CPA_CLIENTE

End Get

Set(ByVal Value As Integer)

_CPA_CLIENTE = Value

End Set

End Property

Public Property CPA_PARCERIA() As Integer

Get

Return _CPA_PARCERIA

End Get

Set(ByVal Value As Integer)

_CPA_PARCERIA = Value

End Set

End Property

Public Property MEM_RAZAO_SOCIAL() As String

Get

Return _MEM_RAZAO_SOCIAL

End Get

Set(ByVal Value As String)

_MEM_RAZAO_SOCIAL = Value

End Set

End Property

#End Region

End Class

End Namespace

xpdit
Asp.Net User
Re: Value of Type System.Collections.ArrayList cannot be converted To ...5/19/2005 1:25:33 AM

0

you have this:

Public Function ListClienteParceria(ByVal CPA_PARCERIA As Integer) As EmpresaParceriaInfo

Return CType(CBO.FillCollection(DataProvider.Instance().ListCasaSoft_ClienteParceria(CPA_PARCERIA), GetType(EmpresaParceriaInfo)), EmpresaParceriaInfo)

End Function

but it really should be this:

Public Function ListClienteParceria(ByVal CPA_PARCERIA As Integer) As EmpresaParceriaInfo

Return CType(CBO.FillObject(DataProvider.Instance().ListCasaSoft_ClienteParceria(CPA_PARCERIA), GetType(EmpresaParceriaInfo)), EmpresaParceriaInfo)

End Function


Intuition without concept is blind; Concept without intuition is empty -- I. Kant : Critique of Pure Reason

In the olden days, books were burned. Now the website is shut down.

KodHedZ Software Development
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
.NET gotchas: 75 ways to improve your C# and VB.NET programs Authors: Venkat Subramaniam, Pages: 372, Published: 2005
Professional C# Authors: Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen, Pages: 1356, Published: 2004
BEGINNING VISUAL BASIC 2005 Authors: Thearon Willis, Bryan Newsome, Pages: 800, Published: 2005
Practical .NET for Financial Markets Authors: Yogesh Shetty, Samir Jayaswal, Pages: 514, Published: 2006
Beginning Vb.Net 2003 Authors: Willis, Pages: 0, Published: -1

Web:
Value of type 'System.Collections.ArrayList' cannot be converted ... Value of type 'System.Collections.ArrayList' cannot be converted to '1- dimensional array of System.Collections.ArrayList'. ...
BC30311: Value of type 'System.Collections.ArrayList' cannot be ... May 31, 2007 ... BC30311: Value of type 'System.Collections.ArrayList' cannot be converted to '1- dimensional array of ContactDetails'. ...
Value of Type System.Collections.ArrayList cannot be converted To ... "Value of Type System.Collections.ArrayList cannot be converted To CasaSoft.DNN. Modules.Parceria.Business.EmpresaClienteInfo" ...
Value of type '1-dimensional array of System.Data.DataRow' cannot ... Data.DataRow' cannot be converted to 'System.Collections.ArrayList'." Can someone please help me? Thanks... My converted source code: ...
System.Collections.Generic.IList - Spring for .NET Community Forums TypeMismatchException: Cannot convert property value of type [System. ... Collections.ArrayList' cannot be converted to type 'System. ...

Value of Type System.Collections.ArrayList cannot be converted To ... Value of Type System.Collections.ArrayList cannot be converted To ..., > ROOT > NEWSGROUP > Asp.Net Forum ...
BC30311 error - ng.asp-net-forum.club_web_site_starter_kit Value of Type System.Collections.ArrayList cannot be converted To ... This error is in (parceriacontroller.vb) ... 2, BC30311: Value of type 'System. ...






dnn custom module

populate dropdown using controller

error on adding new module

help with the ttt gallery please.

code behind question

dnn4 module - sample - adefwebserver guest book

modules and definitions

problem with edit controller. please, help me!

listing of free dnn modules

tttgallery installation tutorial

module actions problem

upgrade 2.x module to 3.x...?

members......like dnn homepage....

free module - amazon related products

compiling private assemblies

countdown module for dnn 1.0.8

multi page content - import content

anyone using portalstore 6.5 and dnn 3.x?

forums module: explain architecture

not able to make my edit control to come up

page counter

dnn 3.1 install process errors

dnndownload no longer available for download !

freetextbox 2.0.7 editor provider.

module development - setting up a dev enviroment

problem using the 'urlcontrol' provided by dnn

iframe render events

shout box module available

(store)locator

how to set dnn url control's root directory

   
  Privacy | Contact Us
All Times Are GMT