How to save runtime decided values to different tables in db.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SujaShyam
    New Member
    • Sep 2010
    • 2

    How to save runtime decided values to different tables in db.

    I am totally new to asp.net mvc-2. Let me now explain my need. I have a view to create an "Instructio n". I need to enter InstructionName , Description, and few Attributes to it. The number of attributes is determined at runtime. When "more attributes" is clicked I replicate a div which contains AttributeId(Dro pdown) and AttributeValue( Textbox). The isntruction details are entered in Instruction table and the attribute details are entered in InstructionAttr ibute table. The definition for Create view is
    <%@ Page Title="" Language="C#" MasterPageFile= "~/Views/Shared/Site.Master" Inherits="Syste m.Web.Mvc.ViewP age<HexsolveMVC .Models.Documen t>" %>

    The model Document contains many properties along with InstructionName , InstructionDesc ription, InstnAttribId, and InstnAttribValu e. How can I save these informations.

    Thanks for any help in prior.
Working...