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  |  

Affordable ASP.NET Hosting Service
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


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.

 


T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com

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