HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulestransfer code - a beginnertransfer code - a beginner's question
Previous
 
Next
New Post
3/25/2010 3:35 AM
 

hi, i'm trying to get my data into my display

but i can't figure how to fill a variable with list of object from my data provider

how am I gonna get the data from MedCat_All() into a list of variable and then sent it to my display

and im trying to avoid using ObjectDataSource, cuz i want to learn the robust transfer code

this is my code behind : ViewMedCat.ascx.vb

Protected Sub ItemBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ItemBtn.Click
 GetAllMedCat()
End Sub

Sub GetAllMedCat()
 Dim datacontext As MedCatController = New MedCatController
 Dim datamed As MedecineInfo = New MedecineInfo

datacontext.MedCat_GetAll() 'this is my sqldataprovider function to get the MedCat_GetAll Stored procedure
End Sub

 

 
New Post
3/25/2010 3:51 PM
 

What does your GetAll method return?  Is it a list?


-Mitchel Sellers
Microsoft C# MVP, MCITP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I recommend PowerDNN and 3Essentials for DotNetNuke Hosting and BaseCamp for project management
 
New Post
3/25/2010 8:26 PM
 

In the controller Get_All return this

 Public Function MedCat_GetAll() As List(Of MedecineInfo)Return CBO.FillCollection(Of MedecineInfo)(DataProvider.Instance().MedCat_GetAll())End Function

 

 

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulestransfer code - a beginnertransfer code - a beginner's question


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.