asp.net mvc 4 - An unhandled exception of type 'System.StackOverflowException' occurred in System.Web.dll -
<div class="head"> @{html.renderaction("top_head", "my_partialview");} </div> <div class="content"> <div class="content-left"> <div class="ad"> <img src="~/images/imagefontend/ad.jpg" /> </div> @renderbody() </div><!--end content-left--> <div class="content-right"> <div class="##-lhe-support-login-sp" id="lien-he"> <div class="label-238px-box"></div> <img src="~/images/imagefontend/call-pic.jpg" /> </div> @{html.renderaction("search_price", "my_partialview");}
2.created my_partialview
using system; namespace shopclothes.controllers { public class my_partialviewcontroller : controller { shoponline1entities db = new shoponline1entities(); // get: /mypartialview/ #region[head] [childactiononly] public actionresult top_head() { homecoming partialview(); } #endregion } }
i follow right syntax? why has been such problem?
the @renderbody
should utilize on layout views, seek removing that
asp.net-mvc-4
No comments:
Post a Comment