CodeSmith Community
Your Code. Your Way. Faster!

Simple CTP Samples - Win and Web

Latest post 07-17-2006 6:46 PM by chitrader. 38 replies.
  • 02-09-2006 11:30 AM

    • bgjohnso
    • Top 10 Contributor
    • Joined on 09-15-2005
    • Spokane, WA
    • Posts 764
    • Points 22,530

    Simple CTP Samples - Win and Web

    Before the forums changed, I had posted a sample web application that used the Admin Entity templates with the Northwind database.  There have been a couple of posts from people asking to get the download again, so I have updated the sample to use the latest CTP templates.  I have also included a very simple windows client.  It has a single form with binding source, binding navigator and datagridview controls.  The code uses the Customers table in Northwind.  It allows you to edit, add and delete records.  This is very simple code and is not meant to demonstrate best practices.  There is no error handling, data validation, etc.  It shows a quick and dirty way to get things wired up and going.

    Ben Johnson
    ------------------------------
     Member of the .NetTiers team
     Visit http://www.nettiers.com
    ------------------------------

    • Post Points: 215
  • 02-09-2006 12:42 PM In reply to

    Re: Simple CTP Samples - Win and Web

    You rock sir. There needs to be [:nod:] smiley.

    Quick point, in case some people have not added Entlib to GAC.

    In the projects, DataAccessLayer and DataAccessLayer.SqlClient your references to Enterprise Library will have to be re- added and referenced from the {root}\References folder.

    Microsoft.Practices.EnterpriseLibrary.Common
    Microsoft.Practices.EnterpriseLibrary.Data
    Microsoft.Practices.ObjectBuilder

    I hope this helps.


    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 5
  • 02-09-2006 12:44 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Thanks, Ben! This is great to have any samples of using .NetTiers with Win and Web.
    Best regards,
    Alex.
    • Post Points: 5
  • 02-09-2006 2:23 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Object reference not set for Web application and Could not find stored procedure 'gen2_Customers_Get_List' for Win app. :-/
    Best regards,
    Alex.
    • Post Points: 35
  • 02-09-2006 3:40 PM In reply to

    • bgjohnso
    • Top 10 Contributor
    • Joined on 09-15-2005
    • Spokane, WA
    • Posts 764
    • Points 22,530

    Re: Simple CTP Samples - Win and Web

    This is due to the stored procs not being created in your database.  You have two options.  First, you can regenerate the NetTiers projects yourself which will create the necessary procs.  I included the CodeSmith settings file (NorthwindSettings.xml) that I used to create the projects.  Second, you can run the NetTiers\SQL\procedures.sql file manually.

    Ben Johnson
    ------------------------------
     Member of the .NetTiers team
     Visit http://www.nettiers.com
    ------------------------------

    • Post Points: 35
  • 02-25-2006 12:24 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Hi Ben! Awesome sample! Post it to documentation please.
    Best regards,
    Alex.
    • Post Points: 35
  • 02-25-2006 12:48 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Because of Filter table this is difficult to customize control.
    Do you have any suggestions or how do you do it yourself?
    Looks like the easiest way to do it in html editor.
    Best regards,
    Alex.
    • Post Points: 5
  • 02-25-2006 12:49 PM In reply to

    • jcteague
    • Top 10 Contributor
    • Joined on 03-10-2005
    • Austin, Tx
    • Posts 442
    • Points 10,925

    Re: Simple CTP Samples - Win and Web

    this post is listed in the documentation.

    Thanks, John Teague ------------------------------ Member of the .NetTiers team http://www.nettiers.com ------------------------------

    • Post Points: 5
  • 02-25-2006 12:58 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Cool. After I set theme for page everything is fine now :) Btw: Nice theme!
    Best regards,
    Alex.
    • Post Points: 5
  • 02-25-2006 4:25 PM In reply to

    Re: Simple CTP Samples - Win and Web

    Thanks Ben, great inspiration for further ideas!!!

    Greetings
    Stefan

    • Post Points: 35
  • 02-26-2006 12:38 AM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Calendar client script does not work in Opera and shows 'false'?
    Best regards,
    Alex.
    • Post Points: 5
  • 02-26-2006 12:58 AM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Hi, Ben!

    I have a suggestion to use MultiView control instead of Table for switching between GridView(with Filter) and FormView.
    This will allow to customise gridview in designer and also controls will show its content on page.
    Let me know do you think.

    Thanks!
    Best regards,
    Alex.
    • Post Points: 35
  • 02-26-2006 12:35 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    Would be great to have public properties to be able to use filter from page code on which control is present.

    I've looke throw code and see that most of properties are private.
    At least Filter property can be public?
    Best regards,
    Alex.
    • Post Points: 5
  • 02-26-2006 2:26 PM In reply to

    • bgjohnso
    • Top 10 Contributor
    • Joined on 09-15-2005
    • Spokane, WA
    • Posts 764
    • Points 22,530

    Re: Simple CTP Samples - Win and Web

    Alex,

    Yes, I was aware of the problem with editing in the designer.  If the Multview resolves this issues, then great!   If you have this working, have you modified the templates?  If so, post them here and I can integrate them into the repository.

    As for the filter property (or any other), I don't see why they couldn't be public.  Again, post any changes you make and I will get them intergated.

    Ben Johnson
    ------------------------------
     Member of the .NetTiers team
     Visit http://www.nettiers.com
    ------------------------------

    • Post Points: 60
  • 02-26-2006 3:13 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Simple CTP Samples - Win and Web

    If type of table foreign key is guid - no dropdown control is shown for this field, only label?
    Best regards,
    Alex.
    • Post Points: 65
Page 1 of 3 (39 items) 1 2 3 Next > | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems