<li style="width:140px">
<%: Ajax.ActionLink(
"P2P",
"PaiementP2P",
"Home",
new { id = Model.person.id },
new AjaxOptions
{
UpdateTargetId = "container",
InsertionMode = InsertionMode.Replace,
HttpMethod="GET"
}
)%>
</li>
and a partial View "PaiementP2P" is displayed ! but the problem is when I click a button in this partial View, I would like to display another partial view but In my way, it when I click on the button, it redirect me to another page
marwa580
Member
18 Points
51 Posts
Partial View
Dec 23, 2012 01:09 AM|LINK
Hello,
I would like to know if I can insert a partial view in another partial view ?
BrockAllen
All-Star
27574 Points
4912 Posts
MVP
Re: Partial View
Dec 23, 2012 01:31 AM|LINK
Yes you can.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
marwa580
Member
18 Points
51 Posts
Re: Partial View
Dec 23, 2012 01:44 AM|LINK
How can I do it please ?!
my example :
In my View accueil.aspx I have this :
<li style="width:140px"> <%: Ajax.ActionLink( "P2P", "PaiementP2P", "Home", new { id = Model.person.id }, new AjaxOptions { UpdateTargetId = "container", InsertionMode = InsertionMode.Replace, HttpMethod="GET" } )%> </li>and a partial View "PaiementP2P" is displayed ! but the problem is when I click a button in this partial View, I would like to display another partial view but In my way, it when I click on the button, it redirect me to another page
How can I do this?
I'm here if you have a question
ignatandrei
All-Star
135204 Points
21687 Posts
Moderator
MVP
Re: Partial View
Dec 23, 2012 12:31 PM|LINK
Yes, Ajax Please see http://bit.ly/mvc_ajax_jquery
marwa580
Member
18 Points
51 Posts
Re: Partial View
Dec 23, 2012 09:53 PM|LINK
I can not do it
ignatandrei
All-Star
135204 Points
21687 Posts
Moderator
MVP
Re: Partial View
Dec 23, 2012 10:40 PM|LINK
why?