Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

RenderPartial??!?

$
0
0

Hi, I'm so keen, so desperately, desperately keen for the MVCnext (what is it called?) to work and to work well. Issues like the one I'm currently facing are driving me utterly crazy.

First - let me point out - i'm not a total noob developer. I've worked with Microsoft platforms since .NET 2.0, and have worked on pretty much every addition to the platform (mvc, workflow, wpf, wcf etc). 

Second - my issue:

error CS1061: 'IHtmlHelper<dynamic>' does not contain a definition for 'RenderPartial' and no extension method 'RenderPartial' accepting a first argument of type IHtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)

in the page:

@{Html.RenderPartial("footer.cshtml")}

and at the top:

@using Microsoft.AspNet.Mvc.Rendering;

@Html.Partial works just fine. Cannot see why RenderPartial will not. Was it removed from the framework? Which brings me to point 3

3 - WHERE IS THE DOCUMENTATION???!? I'm using Visual Studio Code - to prove to my company it's opensourceness. There is no documentation online or otherwise. Annoyingly, MSDN, for ASP.NET 5, suggests that RenderPartial is int he System.Web.Mvc.dll. You try adding that assembly to project.json. Guess what? It doesn't work very well. 

I have no issues with me being a bit dumb, or making stupid mistakes. Such is the life of an engineer. But I feel I'm blindfolded, both hands chopped off and then expected to get on with it. Even just a simple object explorer would be super. Anything that would allow me to understand

i) Which namespace does class X reside in, or, if class X does not exist, then tell me.

ii) Of that namespace, which assembly does it reside in

If there were easy ways to find this out it would make life literally 50 times faster. Currently the best way I have is GitHub. As far as I can see, the extension method RenderPartial has been removed. How would you suggest I find this little nugget of information out?

Like I said, I really really want this to work out - but if this is the level of knowledge that Microsoft are prepared to share with the community it won't take off, because if it take an engineer 3 hours to find something that should have taken 2 minutes then nobody's going to pick it up.

Disclaimer: I am prepared to hold my hands up and say I am stupid, if indeed there is very clear documentation on the whole namespace / assembly / class scenario. No ego with me sir. I would be the opposite, although a little embarassed, the answer would be most excellent.

:)

Thanks,

Pete. 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>