Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  C# examples for new module
Previous Previous
 
Next Next
New Post 5/7/2008 1:16 PM
User is offline Stephen Morrison
1 posts
10th Ranked


C# examples for new module 

I've tried to create a simple test module to add some data to a sample db (sql 2005) but nothing is working.  I started by using a sample written in VB and I think I created everything that I needed but so far I can't get it do anything.  The selects aren't working and I have manually added stuff in the DB but it's still not showing anything.  I've tested my stored procs and they work.  I am also not getting any errors so I'm not sure what kind of code to even post. 

I am using an Objectdatasource with a gridview to view data and a formview to insert data.  From what I can tell everything is connected correctly but so far nothing is happening.  I've tried stepping through the code and my insert button doesn't do anything and it was added when I did the objectdatasource wizard.  Here is my declaration for my objectdatasource.

 <asp:ObjectDataSource ID="ODS_Tasks" runat="server" DataObjectTypeName="YourCompany.Modules.GameList.GameListInfo"
    DeleteMethod="DeleteGameList" InsertMethod="AddGameList"
    OnInit="Page_Load" SelectMethod="GetGameList" TypeName="YourCompany.Modules.GameList.GameListController"
    UpdateMethod="UpdateGameList">
    <SelectParameters>
        <asp:Parameter DefaultValue="00" Name="ModuleId" Type="Int32" />
    </SelectParameters>
    <DeleteParameters>
        <asp:Parameter Name="ModuleId" Type="Int32" />
        <asp:Parameter Name="GameID" Type="Int32" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter DefaultValue="00" Name="ModuleId" Type="Int32" />
        <asp:ControlParameter ControlID="PlatformHolderLst" Name="PlatformID" PropertyName="SelectedValue" />
        <asp:formParameter formField="txtTitle" Name="Title" Type="String" />
        <asp:formParameter formField="txtPublisher" Name="Publisher" Type="String" />
        <asp:ControlParameter ControlID="RegionLst" Name="RegionID" PropertyName="SelectedValue" />
    </InsertParameters>
</asp:ObjectDataSource>

 

 

 
New Post 5/7/2008 2:30 PM
User is offline Snoek8
41 posts
www.mexmax-internet.com
10th Ranked


Re: C# examples for new module 

You could try it without using the ObjectDatasource and binding directly from your code behind:

GridView1.DataSource = YourCompany.Modules.GameList.GameListInfo;
GridView1.DataBind();

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  C# examples for new module
 


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.

 


"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com
Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com
XCESS expertise center b.v.
Custom made modules and complete solutions for the DNN framework. Maatwerk modules en complete webtoepassingen gebaseerd op het DNN framework.
www.xcess.nl

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP