Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to save values in different tables from single view using MVC4
    primarykey
    data
    text
    <p>Hey I am new in MVC and I am trying to creat a demo application in mvc4 with below description</p> <ol> <li><p>Create a view with five fields </p> <p>(a) Student Name</p> <p>(b)Student Father Name</p> <p>(c)Student Mother Name</p> <p>(d) Student Class</p> <p>(e)Student Section</p></li> </ol> <p>Where Student Name, Student Father name, Student Mother name save into Student_Personal_Information table and Student Class and Student Section is save into Student_School_Information table.</p> <ol> <li><p>Create Two tables in SQL Server with below field</p> <p>(a) In Student_Personal_Information table</p> <pre><code>(I) Student_Id int (identity)(Primary Key) (II) Student_Name varchar(200) </code></pre> <p>(III) Student_Father_Name varchar(200)</p> <p>(IV) Student_Mother_Name varchar(200)</p> <p>(b) In Student_School_Information table</p> <p>(I) Student_Class_Id (identity)(Primary Key)</p> <p>(II) Student_Id int (FK with Student_Personal_Information table's Student_Id column)</p> <p>(III) Student_Class varchar(20)</p> <p>(IV) Student_Section varchar(5)</p></li> </ol> <p>Note :- Those data save in table with the help of stored procedure </p> <p>Now my problem is that how can I save all fields data in two Separate(Student_Personal_Information and Student_School_Information) tables using MVC4.</p> <h2>Now I am Edit My Question</h2> <p>I am also creating a partial view and give the Student Class and Student Section field into partial(strongly type) view now how can I achieve my task </p> <p>Any Help will be Appreciated! </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload