Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Friends, I am a beginner to mvc, please help me.

I want to create Purchase Order form in mvc. my screens have header and details(i.e, text box fields and gridview) Then I have two tables in database.
1. How to generate Auto PO Number
2. how to save same PO number into two tables in db.

What I have tried:

I am a beginner to MVC. I want to create Purchase Order form in mvc.
Posted
Comments
Marcus Kramer 29-Jun-16 12:04pm    
1) Write code to generate an auto PO Number. Either have an automatically calculated PK on one of the tables, or a coded method to generate this value if required.
2) Either insert a row in the table with the auto pk and read the value so you can insert it into the second table, or get the coded method's return value and then insert that value into both tables.
Vivek.anand34 29-Jun-16 23:25pm    
Ok thank u....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900