ASP.NET MVC: Panel HtmlHelper extension methods with using syntax

16 11 2010

This post is no longer maintained. Click here for the updated version of this post





11 responses

23 11 2010

Very nice and also very detailed! Thanks for sharing 🙂

29 11 2010

Thank you very much for your feedback!

4 02 2011
Max Campsell

Great piece of coding. Unable to get the following to workwith MVC 3!
@using (Html.BeginPanel(“This is my first Panel”))

Content of my first panel.

The content of the is appearing at the bottom of the page, not in the panel.
Any idea’s?

6 02 2011

Hello Max,

I’m sorry about your problem. I didn’t test it with MVC 3 but if you could
provide me with the code and markup of a sample page not working I
will have a look and see if I can help.
If you prefer you can send me an example at:

13 04 2011
Rafael Belliard

I too am trying this using ASP.NET MVC 3 and the Razor syntax. I am copying this exactly as it you wrote it and it is displaying the panel at the top of the html, e.g.:

Any ideas? Thanks.

13 04 2011
17 04 2011

Hello Rafel,

thank you very much for your help.
I still don’t work either with with ASP.NET MVC 3 or with Razor
so I was not helpful to Max.
Thank you for the cross-reference too.


25 07 2012

Hi, worked very well for me, thk u very much!

14 12 2011
Paweł Olesiejuk

“MvcPanel BeginPanelFor(this HtmlHelper html, Expression<Func> expression)”

Thanks for that, it is what I was looking for (generic extension for HtmlHelper)


14 03 2012
25 01 2017

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: