locked
create package with using view and partial view in MVC RRS feed

  • Question

  • Hi All,
    I'm new about MVC. I want to create application to keep package for company like this;
     
    I'm keep two table 'PackageHed' and 'PackageDet'
     
    PackageHed
    pakageCode (PK)
    PackageName
    PackagePrice
     
    PackageDet
    PkdID (PK)
    pakageCode(FK)
    ItemName
    ItemPrice
     
    A pakage has more items.
    I want to save all data to db using one click. I wish to add items of package with using table in view.
     
    Please help me to complete this.
     
    Thanks.
    • Moved by Barry Wang Tuesday, October 28, 2014 10:04 AM
    Monday, October 27, 2014 7:13 AM

Answers

  • @Chamara49,

    Please consult ASP.NET MVC forum instead of here.http://forums.asp.net/1146.aspx

    Regards,



    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Just Karl Tuesday, October 28, 2014 4:58 PM
    • Marked as answer by Just Karl Thursday, November 20, 2014 10:18 PM
    Tuesday, October 28, 2014 10:04 AM

All replies

  • Hi

    This might give you heads-up on creating an MVC application with partial view. 

    http://www.dotnetfunda.com/articles/show/1831/how-to-create-partial-views-mvc-tutorial-number-10

    On click of submit button, u can make db call to store the data in PackageHed & to PackageDet. Else have a storedproc and make the storedproc do the data insertion. Just make sure you update data in PackageHed before adding data into PackageDet.

    Hope this helps

    Seth Hop

    Monday, October 27, 2014 8:40 AM
  • @Chamara49,

    Please consult ASP.NET MVC forum instead of here.http://forums.asp.net/1146.aspx

    Regards,



    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Just Karl Tuesday, October 28, 2014 4:58 PM
    • Marked as answer by Just Karl Thursday, November 20, 2014 10:18 PM
    Tuesday, October 28, 2014 10:04 AM