Ankita
Ankita

Reputation:

Ajax in Asp.net mvc

I am using ajax in mvc for partial page refresh.

I create a partial view (ie a seperate user control) for each page and then call partial view by using Html.RenderPartial().

I just want to confirm that do I need to create a seperate user control for every page or is there any other way?

Any suggestions would be greatly appreciated.

Upvotes: -1

Views: 107

Answers (1)

Alan Jackson
Alan Jackson

Reputation: 6511

You should create a separate user control for each logical unit that you want to partially render. For more fine grained control, I will use javascript (jquery) to manipulate the DOM directly rather than rendering partials.

Upvotes: 2

Related Questions