title: Getting value from unbound input razor MVC3
body: <p>Please forgive me as I am just learning MVC3. </p>
  
  <p>I have 2 db tables one for competitions and one for answers. For each competition there will be 3 answers associated with it.</p>
  
  <p>My Create view is strongly typed to my competition model. What I want to do is add 3 unbound input boxes to that view and retrieve the results in the controller</p>
  
  <p>My controller looks like this</p>
  
  <pre><code>Function Create(competition As Competition) As ActionResult
    If ModelState.IsValid Then
      db.Competitions.AddObject(competition)
      db.SaveChanges()
      Return RedirectToAction("Index")
    End If
    ViewBag.ClientID = New SelectList(db.Clients, "ClientID", "ClientName", competition.ClientID)
    Return View(competition)
  End Function
  </code></pre>
  
  <p>What i would like to do is something like this</p>
  
  <pre><code>Function Create(competition As Competition) As ActionResult
    If ModelState.IsValid Then
      'DIM ANSWERA AS STRING = INPUTA
      'DIM ANSWERB AS STRING = INPUTB
      'DIM ANSWERC AS STRING = INPUTC
  
      db.Competitions.AddObject(competition)
      db.SaveChanges()
      'SAVE ANSWERS TO ANSWER TABLE
  
      Return RedirectToAction("Index")
    End If
    ViewBag.ClientID = New SelectList(db.Clients, "ClientID", "ClientName", competition.ClientID)
    Return View(competition)
  End Function
  </code></pre>
  
  <p>Sorry if I have not formatted the question properly. Hopefully you get the gist of what I am trying to do</p>
  
  <p>thanks</p>
  
  <p>I got the above working by now I want to be able to edit competition details in a view</p>
  
  <pre><code>   Function Edit(id As Integer) As ViewResult
          Dim competition As Competition = db.Competitions.Single(Function(c) c.CompetitionID = id)
  
  
  
         ViewBag.ClientID = New SelectList(db.Clients, "ClientID", "ClientName", competition.ClientID)
          Return View(competition)
      End Function
  </code></pre>
  
  <p>So I scaffold the view which returns my competition details but how do I add 3 input boxes to display the 3 answers associated with that competition?</p>