DalSoft / dalsoft-website-comments

0 stars 0 forks source link

blog/index.php/2010/07/29/asp-net-mvc-2-template-helpers-allow-you-to-specify-extra-view-data/ #15

Open utterances-bot opened 2 months ago

utterances-bot commented 2 months ago

ASP.NET MVC 2 -Template Helpers Allow You to Specify Extra View Data | DalSoft Ltd

Since MVC 2 RTM release in March Template Helpers Allow You to Specify Extra View Data

https://www.dalsoft.co.uk/blog/index.php/2010/07/29/asp-net-mvc-2-template-helpers-allow-you-to-specify-extra-view-data/

DalSoft commented 2 months ago

Legacy Comments

Vinicius says: November 26, 2010 at 6:06 pm Nice post, I d like to know how many changes it involves for usage with the version .NET 3.5/Visual Studio 2008.

Thanks a lot.

Best regards.


Mbp says: January 5, 2011 at 7:03 am Can you provide some inputs on how to use Radio Button List in MVC2?


Prince says: April 11, 2012 at 6:21 pm Can you do this example in razor please, I am having problems trying to use the additional data, I am praying I havent run into a bug, I have tried several ways to do this in razor.


DalSoft says: April 12, 2012 at 10:21 am

@Html.EditorFor
(
   model => model.Offices, new 
   { 
      HelpText="To select multiple offices press ‘Ctrl’ and select the option"
   }
)

Should work

Followed by

@{ var helpText = ViewData[“HelpText”] ?? string.Empty; }

@helpText

In your template


moduretic says: October 8, 2014 at 7:58 am Very energetic blog, I lovved that a lot. Will there be a part 2?

obrzeże eko bord opinie says: November 20, 2015 at 7:15 am Hello! I’ve been following your web site for some time now and finally got the bravery to go ahead and give you a shout out from New Caney Tx! Just wanted to say keep up the excellent job!