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.gotcommunitynet Tags:
Item Type: NewsGroup Date Entered: 12/16/2004 9:48:59 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 98 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
d_s_major@hotma
Asp.Net User
Questions on CBO.FillObject Method12/16/2004 9:48:59 AM

1

I have created a new Class in my own namespace and Import the DotNetNuke namespace into that. I would like to run a function that returns a filled class instance. My code looks like the following:

Public Function MW_ShoppingGetGeneralSettings(ByVal PortalID As Integer) As MWGeneralSettingsInfo
Dim myConnection As New SqlConnection(GetDBConnectionString)
Dim myCommand As SqlCommand = SqlCommandGenerator.GenerateCommand(myConnection, CType(MethodBase.GetCurrentMethod(), MethodInfo), New Object() {PortalID})
myConnection.Open()
Return CType(CBO.FillObject(myCommand.ExecuteReader(CommandBehavior.CloseConnection), GetType(MWGeneralSettingsInfo)), MWGeneralSettingsInfo)()
End Function

As you can see, I am grabbing an IDataReader and using the FillObject Method of the CBO to try to return a filled class.
the error I'm getting is "Class 'MyNamespace.MWGeneralSettingsInfo' cannot be indexed because it has no default property." - Though this bit of code LOOKS just like the code DNN uses to return a User object...
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Questions on CBO.FillObject Method - ASP.NET Forums As you can see, I am grabbing an IDataReader and using the FillObject Method of the CBO to try to return a filled class. ...
GotCommunityNet - ASP.NET Forums Questions on CBO.FillObject Method by d_s_major@hotmail... No Status. Questions on CBO... by d_s_major@hotmail.com. 12-16-2004, 5:29 AM ...
IDataReader and XmlNode in C# : IDataReader, XmlNode, C#, .NET Dec 23, 2008 ... I have a method that returns a custom data type that's currently populated by a ... Search, ask, and monitor your questions on the go with EE Mobile. ... CBO { public CBO(); public static T FillObject(IDataReader dr); ...
CodeProject: Visual Basic Discussion Boards. Free source code and ... Visual Basic Questions. ... Now I'm trying to use a FillObject method, but I seem to be stuck at this point. I'm getting the following error 'System. ...
Blew up my login page... > DotNetNuke Forum, DNN Creative Magazine ... Return CType(CBO.FillObject(DataProvider.Instance().GetHtmlText(moduleId) .... Line 39: #Region "Shared/Static Methods" Line 40: ...

Questions on CBO.FillObject Method - ng.asp-net-forum.gotcommunitynet Questions on CBO.FillObject Method, > ROOT > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.gotcommunitynet, Date: 12/16/2004 9:48:59 AM, ...
IFRAME module Question - ng.asp-net-forum.dotnetnuke Questions on CBO.FillObject Method - ng.asp-net-forum.gotcommunitynet IFRAME module Question - ng.asp-net-forum.dotnetnuke - error ... Return CType( CBO. ...






named page security issue

gcn v1.1 color picker in freetextbox impl

newsletter to members

dir2aspx isapi filter

hiding admin controls from users in groups

removing comments

forum ii code side by side with gcn code

article pager

[2.0] - database support

custom redirects

need help compiling using batch file

[1.2] solid tracing and diagnostic support

link module: enhancement suggestion

woo hoo first post

navigation between module controls

new and popular photo web box not showing pics

1000 changes, and in what order

english text not found

free text box issue

[2.0] - permissions enum

[2.0] - mobile support

friendly urls

get rid of itembookauthor, item####

gcn download

gcn terms of use

transfering users from an access database

advanced templating - don't try this at home!

modifying event controls [architecture]

launching flash from csk or gcn

new community

   
  Privacy | Contact Us
All Times Are GMT