MVC3 User Control issue

I am totally new in MVC framework and i am using MVC3 framework

In am application i need to create MVC user control or partialview, for that i created MVC user control and in there i have couple of Html.Dropdownlist now i added this MVC user control in my pageView and calling my partial view using code

Html.RenderPartial("controlName");

but the problem is controler of usercontrol/partialview not executing index method or any method in controller so this is my issue please help me, how i will solve this.

Thanks
farjack1Asked:
Who is Participating?
 
IrzanaCommented:
Html.RenderPartial takes partialviewName as parameter, not controller name

Try using

Html.RenderPartial(partilaViewName)
0
 
farjack1Author Commented:
thanks i found out the Ans, the Ans si

Html.RenderAction("partilaViewName", "MethodName");
0
 
farjack1Author Commented:
As per my question my controler of user control was noy executing, so as i provided the code that is working.

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.