Link to home
Create AccountLog in
Avatar of finance_teacher
finance_teacher

asked on

custom Scaffold template -- ASP.net MVC4 C#

How can I create a custom "EDIT" Scaffold template
that automatically does the below "Desired" layout ?
 ** maybe an existing https://nuget.org/packages exists ?

Current Steps
 1. rightClick on a CONTROLLER method
 2. leftClick "Add View"
 3. check "Create a strongly-typed view
 4. select "Scaffold Template=EDIT"
 5. click "ADD"
 6. open EDIT.cshtml
 7. manually more columns around so it appears like attached
------------------------------------------------------------
Current
 Line #1 = Property_1_Label
 Line #2 = Property_1_Value
 Line #3 = Property_2_Label
 Line #4 = Property_2_Value
 Line #5 = Property_1_Label
 Line #6 = Property_1_Value
 Line #7 = Property_2_Label
 Line #8 = Property_2_Value
------------------------------------------------------------
Desired
 Line #1 = Property_1_Label, Property_1_Value, Property_2_Label, Property_2_Value
 Line #2 = Property_3_Label, Property_3_Value, Property_4_Label, Property_4_Value
s005.jpg
ASKER CERTIFIED SOLUTION
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer