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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
 


  Sponsors  

Meet Our Sponsors

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
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  ThingsForSale Example
Previous Previous
 
Next Next
New Post 11/6/2007 7:17 PM
Unresolved
User is offline Chris_Stewart
16 posts
10th Ranked


ThingsForSale Example 

I'm using the ThingsForSale example as a starting point, but I'm running into trouble.  I want to be able to store everything in a single table like ThingsForSale, but I to limit the view so people could only see thier stuff.  It's for another type of application, this way an "administrator" could see all the records, but the person putting in the data could only see the data they put in.  But also check to make sure that the record was not already in the table.  So two people could not type in "fish".  I have this set on the database side, but can't seem to get a catch statement to work right. 

I thought I could add add a column in the table for the useID and store it and then with the stored procedure only pull back the records where (moduleID = @moduleID and userID=@userid), but that did not work.  I also tried just using the userID instead fo the moduleID, but that did not work either.  Here is what I added to the controller.  I modified the info as well to add the userID information and used a new Stored Procedure so I would not mess up the orginal one.

Any idea or an example I could look at?  It always seems that I can only find a portion of what I want to try and accomplish.

Thanks.

 

I tried:

<DataObjectMethod(DataObjectMethodType.Select)> _
Public Shared Function LandingPages_SelectAll(ByVal ModuleID As Integer, ByVal UserID As Integer) As List(Of LandingPagesInfo)
Return CBO.FillCollection(Of LandingPagesInfo)(CType(DataProvider.Instance().ExecuteReader("Stuff_SelectAll", ModuleID, UserID), IDataReader))

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  ThingsForSale Example
 


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.

 


DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au
Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com
Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net

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