Skip to content

Righthand Blog

About .NET/C#, Xamarin, Flutter and other fun technologies

  • Righthand Dataset Debugger Visualizer
asp.net mvc

RenderPartialToString missing in ASP.NET MVC

Posted on: April 30, 2009March 29, 2020

If I had to pick the most important feature that is missing from ASP.NET MVC it would be RenderPartialToString. This method should render a partial view to a […]

.net 3.5 / asp.net mvc / CodeRush

Enhancing strong typed views in ASP.NET MVC

Posted on: April 22, 2009March 29, 2020

I’ve added new constructs for replacing < % Html.RenderPartial("~/Shared/LogOnUserControl.ascx", model); %>   with these < % Html.RenderPartial().Shared.LogOnUserControl(model); %>   where model argument is strong typed of course. There […]

.net 3.5 / asp.net mvc / CodeRush / DevExpress / DXCore / DXCore plugin / VS Add In

Strong typing routes in ASP.NET MVC

Posted on: April 21, 2009March 29, 2020

Let’s say you have Test action in Home controller like this: public ActionResult Test(int id, int tubo) { return View("Index"); } And you want to create a hyperlink […]

.net 3.5 / asp.net mvc / CodeSmith

Strong typing views in ASP.NET MVC

Posted on: April 18, 2009March 29, 2020

Did you ever wonder why do you have to write code like: public ActionResult SomeAction() {   … return View("SomeView", model); } instead of this beauty: public ActionResult […]

.net 3.5

Slicker call to Dispose method

Posted on: April 15, 2009March 29, 2020

Do you ever get tired of code like this: if (someObject != null) { someObject.Dispose(); } or its shorter version if (someObject != null) someObject.Dispose(); Isn’t annoying to […]

Niche Blog by Fahim Murshed