-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excluding child action of a child action failes #46
Comments
Can you provide me a simple MVC demonstrating the issue ? |
ok here is one example |
And I found out the second child action gets called just once! which should display fresh data everytime but it won't. |
Are you doing any of this in an actionfilter? If so, I had a similar problem and discovered it's because the actionfilter was being called twice, if it is on an action which calls a child action. You can avoid that by checking |
Thanks man, |
@mahdi87gh From your description it sounds like what I posted is correct. You need to somehow check for |
Dear @migig As I mentioned before, I'm not getting two calls at all, and I'm not using any action filter. You can see it for yourself in the sample project. |
@mahdi87gh Your post implied that you are getting two calls, because you said that the markup is repeated. Maybe put a breakpoint in the innermost child action and double check? |
@migig I did that (putting breakpoints on every action) before and NO I'm not getting two calls!!! and markup is repeated that's why I posted here! |
That's weird... 😦 Try StackOverflow.... |
@migig Thanks |
Cool 😎 |
Hi
I have a child action for creating my footer which loads data from database. And I am loading it like this in my Layout.chtml
@Html.Action("CreateFooter", "Home", true)
In CreateFooter action I call another child action for displaying page visit status which shouldn't be cached and needs to display fresh data. So in my CreateFooter.chtml
@Html.Action("GetStatus", "VisitCounter", new { Address = "PV-Home -> Index" },true)
But things in my footer gets messed up. some part of footer which is right after this line of code, repeats before whole footer!! If i change it to this line
@Html.Action("GetStatus", "VisitCounter", new { Address = "PV-Home -> Index" })
Nothing gets messed up but the visit status data wo'nt be fresh anymore.
In Home controller , CreateFooter has dounut attribute
In VisitCounter controller , GetStatus has'nt dounut attribute
Please kindly help me.
The text was updated successfully, but these errors were encountered: