Click here to Skip to main content
15,040,003 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello I am new to MVC 4 and i am trying bind routine of class .

for example if i bind class after that automatically get the all routine of same class .

if we talk in c# language i want to bind a repeater2 on item bound command of repeater 1.

i dont have any idea how to get this in mvc

for more detail plzz go on
call a view on page load in mvc 4 | ASPForums.Net[^]

What I have tried:
Updated 30-Mar-16 20:46pm
Sinisa Hajnal 30-Mar-16 3:24am
There is no repeater in MVC. Create instead small view with the template you need and call it from the for loop (or even better, just send it the model and return the whole table from the view).

1 solution


If my understanding is correct and you need to display different views when your page loads on different sections of your page (suppose)
You can always use Partial views in MVC, may it be on a click or page load, you need to pass parameters to any ActionResult method and return a partial view from that action method, and use the loadUrl method on your layout view.

I hope you got what I am trying to interpret.

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