Click here to Skip to main content
16,014,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My question is i want to bind list data in text boxes in my pages.Below is the my list data **
I successfully binded indivisual data like** "ProductId":2,


ProductInfo":[{"Key":"Size","Value":"Small"},{"Key":"Color","Value":"Red"},{"Key":"Gender","Value":"Male"},{"Key":"Price","Value":"$150.00"},{"Key":"Description","Value":"Test Product Decription--DY"},{"Key":"Description","Value":"Test Product Decription--DY"}],

Here i want to bind the productinfo data.Like i want to bind "color" details in one textbox that is "red" and as well as bind all remaining data in respective textboxes.

in my mvc views page i bind productid value using below code snippet

first in my view page i give reference to the respective model

@model WebShopdesigns.EShop.UI.Dvo.Mvc4.Cart.Prtidlookupdvo



@Html.TextBoxFor(m =>m.Productid)


Please let me know how to bind list data that is key value pair data in text boxes
Posted
Comments
sarath from cst 7-Sep-13 6:28am    
I solve the issue my self thank you for viewing

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