Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Handy Tip From Your Uncle JSOP

Handy Tip From Your Uncle JSOP

Scheduled Pinned Locked Moved The Lounge
asp-netarchitecture
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #1

    When working in a MVC app, do NOT name any of your entity properties "Model". If you do, the post-back when you click your submit button will give you a null entity object.

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    G 1 Reply Last reply
    0
    • realJSOPR realJSOP

      When working in a MVC app, do NOT name any of your entity properties "Model". If you do, the post-back when you click your submit button will give you a null entity object.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      Nothing quite like undocumented reserved identifiers.

      Software Zen: delete this;

      J 1 Reply Last reply
      0
      • G Gary R Wheeler

        Nothing quite like undocumented reserved identifiers.

        Software Zen: delete this;

        J Offline
        J Offline
        jmaida
        wrote on last edited by
        #3

        secret sauce but not tasty

        "A little time, a little trouble, your better day" Badfinger

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups