Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Agree with @sliderhouserules, the way you are using MVC framework is awful. You must forgot all your "old school" techniques. You should never use SqlCommands, SqlReaders, etc. in the code of the pages. You should pass to the view only a model (e.g. View(bar)) and it will be better if you avoid usage of</p> <pre><code>ViewData["some magic string"] = bar </code></pre> <p>Every time when you will use "old school" technique 2 mans and 2 cats will be killed :).<br> Also it's better to use some ORM (Object-Relational Mapper) like Linq2sql, NHibernate, SubSonic, etc.<br> If you need in samples of good application design please look at <a href="http://code.google.com/p/sharp-architecture/" rel="nofollow noreferrer">SharpArchitecture</a>. It has a very good architecture and implementation and may help a lot. It has one sample (with Northwind db) and one more sample will be added soon.<br> Also look at <a href="http://code.google.com/p/codecampserver/" rel="nofollow noreferrer">CodeCampServer</a>. It has very good architecture too.<br> It's better to look at the code of these projects instead of looking videos because existing videos can't demonstrate good sample of architecture, just a simple usage of functionality.<br> About server controls, you may use them if they can be used without 'runat="server"', like PlaceHolder. And you may create them too, but you shouldn't load any data in them directly. If you don't want to copy-paste html you should review your code and you should refactor it. Every duplicated code should be moved to MasterPages of UserControls (ascx ones).<br> And once more, please spend some time to look at these samples. You'll save your nerves and time in the future when you'll need to update the app or fix something. At the first look they can be hard to understand but this is only at the first look. Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload