Skip to content

Righthand Blog

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

  • Righthand Dataset Debugger Visualizer
.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 […]

.net 3.5 / asp.net mvc

Partial Output Caching in ASP.NET MVC updated

Posted on: March 21, 2009March 29, 2020

Thanks to Miha Valenčič I’ve found this great article about Partial Output Caching in ASP.NET MVC. It actually explains how to do ActionResult caching in ASP.NET MVC. It […]

.net 3.5 / asp.net mvc

My first ASP.NET MVC pet project – Walls Talking

Posted on: March 20, 2009March 29, 2020

This week I’ve been extremely busy. Besides my usual work that pays for my living I worked on my first ASP.NET MVC project: Walls talking. I followed ASP.NET […]

.net 3.5 / ORM

Entity Framework leaves the door open to a SQL Injection attack?

Posted on: February 9, 2009March 29, 2020

I couldn’t believe it when I read Julie Lerman’s post about EF and SQL Injection. She discovered that Entity Framework doesn’t use parameterized queries always! I had to […]

.net 3.5 / SQL / WCF

Calling WCF services from within Sql Server

Posted on: January 9, 2009March 29, 2020

It is possible to create a managed .net stored procedure for SQL Server that acts like a WCF client. SQL Server 2005 at least is required. But I […]

.net 3.5 / LINQ / LLBLGenPro / VS 2008

Using extension methods to make code less cluttered

Posted on: November 8, 2008March 29, 2020

Here is an example where an extension method is useful. Take this [LGP] code for example: public EntityCollection<CustomersEntity> GetCustomers() { using (DataAccessAdapter da = new DataAccessAdapter("Data Source=[SERVER];Initial Catalog=Northwind;Integrated […]

.net 3.5 / DevExpress

Visual Studio, CodeRush and Silverlight 2

Posted on: October 15, 2008March 29, 2020

If your Visual Studio 2005 or 2008 freezes while creating a Silverlight project, or any other project then you might try switching off [CodeRush] add in. Yep, it […]

Posts navigation

Previous page Page 1 Page 2 Page 3 … Page 6 Next page
Niche Blog by Fahim Murshed