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. Web Development
  3. passing id using@url.Action

passing id using@url.Action

Scheduled Pinned Locked Moved Web Development
com
2 Posts 2 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.
  • S Offline
    S Offline
    svknair
    wrote on last edited by
    #1

    i have a listing page liststd view which displays all standards when i click on any standard it redirects to section view in section view i have a @url.Action to add new Section. A new gets opened but i need standard when the section view get opened so that when saving i can save both standard and section

    N 1 Reply Last reply
    0
    • S svknair

      i have a listing page liststd view which displays all standards when i click on any standard it redirects to section view in section view i have a @url.Action to add new Section. A new gets opened but i need standard when the section view get opened so that when saving i can save both standard and section

      N Offline
      N Offline
      Nathan Minier
      wrote on last edited by
      #2

      You've got a few options. The one I'd suggest is a navigation property in the section that references the standard; unless you're explicitly sharing an individual section across many standards that would be the best route IMO. Another option would be to put the standard ID into the ViewBag and pass that to your section edit view. I like that one less, as it potentially poses issues on refresh, deep linking, etc. Plus it's pushing DAL logic to the View, which is less than awesome.

      "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

      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