Click here to Skip to main content
15,897,518 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 asp.net 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:

http://www.aspforums.net/Threads/166399/call-a-view-on-page-load-in-mvc-4/
Posted
Updated 30-Mar-16 20:46pm
v2
Comments
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

Hello,

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.
Thanks
 
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