¡@

Home 

c# Programming Glossary: collectionname

How to produce non-sequential prefix collection indices with MVC HTML Editor templates?

http://stackoverflow.com/questions/11267354/how-to-produce-non-sequential-prefix-collection-indices-with-mvc-html-editor-tem

BeginCollectionItem this HtmlHelper html string collectionName var idsToReuse GetIdsToReuse html.ViewContext.HttpContext collectionName.. var idsToReuse GetIdsToReuse html.ViewContext.HttpContext collectionName string itemIndex idsToReuse.Count 0 idsToReuse.Dequeue Guid.NewGuid.. input type hidden name 0 .index autocomplete off value 1 collectionName itemIndex return BeginHtmlFieldPrefixScope html string.Format..