Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Just some question needed ask clearly,
i got review many article for multiple table retrieve in one view using textbox and label.
but i wanna ask got any impossible using retrieve data to repeater or datalist?

sry, i very confuses regarding this MVC4. please give me some advise, thanks alot
Posted

1 solution

It's not a good practice of using ASP.NET webform controls in ASP.NET MVC. If u want to implement the controls like datalist and repeater u need to create custom html helper else create a common html structure for this control and loop through the items. There are no inbuilt control provided by microsoft in asp.net MVC for datalist and repeater. You will get the repeater and datalist html structure after running this in the ASP.NET webform application by taking the viewsource.

Useful links
http://www.devcurry.com/2013/04/datalist-in-aspnet-mvc-knockoutjs.html#.UhSdW9InpBE[^]

http://codesprouts.com/post/ASPNet-MVC-DataList-Extension.aspx[^]

http://www.asp.net/mvc/tutorials/older-versions/views/creating-custom-html-helpers-cs[^]

Hope this helps
 
Share this answer
 

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