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

 


Actions

Information

13 responses

23 11 2010
Mark

Very nice and also very detailed! Thanks for sharing 🙂

29 11 2010
ilmatte

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
ilmatte

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:
il_matte@yahoo.it

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
ilmatte

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.

Matteo

25 07 2012
mickajsd

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)

Cheers,
Paul.

14 03 2012
25 01 2017
12 05 2020
Francisco Belhumeur

First time visiting your website, I love your web site!

3 01 2022
Razor base type / Templated Razor Delegates with the "using" keyword - Programming Tutorial

[…] FYI: Using the old ASPX engine, here’s how to do it. […]

Leave a reply to ilmatte Cancel reply