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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


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.

 


Glanton: Enterprise Intranet Specialists Using DNN
Glanton Solutions are a premier provider of sevices for large corporates lloking to outsource Intranet sites.
www.glanton.com
Jetkey Smart Map
Smart Map is an AJAX powered Google Map module that displays driving directions, proximity search results and data from your own databases. Smart Map reads GPX (GPS data) files, GeoRSS feeds, and KML data. You can pass any querystring parameter to Smart Map and into your own custom queries to control what data displays on the map.
smartmap.jetkey.com
DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com

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