मैं acsx फ़ाइल में Html.RenderPartial उपयोग करने के लिए कोशिश कर रहा हूँ और मैं एक त्रुटि हो रही है: हालांकि मैं आयात आवश्यक नामस्थान हैascx फाइलों में Html.RenderPartial() का उपयोग
Compiler Error Message: CS1973: 'System.Web.Mvc.HtmlHelper' has no applicable method named 'RenderPartial' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax
<a href="/projects/<%=project.Id %>">
<% Html.Label("fdf"); %>
<% Html.RenderPartial("ProjectName", Model.Id); %></a></li>
<%} %>
, तो यह त्रुटि
<% Html.Label("fdf"); %>
पर नहीं होगा वहाँ रहे हैं किसी भी तरीकों ascx फ़ाइल में Html.RenderPartial उपयोग करने के लिए?
+1 मेरी समस्या भी हल हो गई! धन्यवाद! – Rob
@Rob, यदि आप कभी भी रेजर पर स्विच करते हैं, तो इसका उपयोग करने पर विचार करें: http://stackoverflow.com/questions/4047543/render-partial-view-with-dynamic-model-in-razor-view-engine-and-asp -नेट-एमवीसी -3/5357049 # 5357049 – juan