90 writes to HtmlFieldPrefix
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
207newViewData.TemplateInfo.HtmlFieldPrefix = newViewData.TemplateInfo.GetFullHtmlFieldName(For.Name);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
LabelTagHelperTest.cs (1)
296viewData.TemplateInfo.HtmlFieldPrefix = htmlFieldPrefix;
PartialTagHelperTest.cs (2)
420viewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "order.items[0]"; 500viewContext.ViewData.TemplateInfo.HtmlFieldPrefix = expected;
SelectTagHelperTest.cs (2)
498viewContext.ViewData.TemplateInfo.HtmlFieldPrefix = nameAndId.Name; 581viewContext.ViewData.TemplateInfo.HtmlFieldPrefix = propertyName;
ValidationSummaryTagHelperTest.cs (1)
172viewContext.ViewData.TemplateInfo.HtmlFieldPrefix = prefix;
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
DefaultDisplayTemplates.cs (2)
104htmlHelper.ViewData.TemplateInfo.HtmlFieldPrefix = string.Empty; 144htmlHelper.ViewData.TemplateInfo.HtmlFieldPrefix = oldPrefix;
DefaultEditorTemplates.cs (2)
86viewData.TemplateInfo.HtmlFieldPrefix = string.Empty; 126viewData.TemplateInfo.HtmlFieldPrefix = oldPrefix;
TemplateBuilder.cs (1)
120viewData.TemplateInfo.HtmlFieldPrefix = _viewData.TemplateInfo.GetFullHtmlFieldName(_htmlFieldName);
TemplateInfo.cs (1)
34HtmlFieldPrefix = original.HtmlFieldPrefix;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (77)
DefaultDisplayTemplatesTest.cs (2)
216templateInfo.HtmlFieldPrefix = "FieldPrefix"; 244templateInfo.HtmlFieldPrefix = "FieldPrefix";
DefaultEditorTemplatesTest.cs (11)
454templateInfo.HtmlFieldPrefix = "FieldPrefix"; 483templateInfo.HtmlFieldPrefix = "FieldPrefix"; 505templateInfo.HtmlFieldPrefix = "FieldPrefix"; 531templateInfo.HtmlFieldPrefix = "FieldPrefix"; 555templateInfo.HtmlFieldPrefix = "FieldPrefix"; 859helper.ViewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix"; 931helper.ViewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix"; 1003helper.ViewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix"; 1072helper.ViewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix"; 1142helper.ViewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix"; 1209helper.ViewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix";
Rendering\HtmlHelperCheckboxTest.cs (8)
307helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 350helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 391helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 430helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 486helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 506helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 527helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 731helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix";
Rendering\HtmlHelperDisplayTextTest.cs (2)
260viewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix"; 285viewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix";
Rendering\HtmlHelperHiddenTest.cs (12)
100helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 135helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 263helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 294helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 326helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 342helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 357helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 375helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 406helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 683helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 702helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 860viewData.TemplateInfo.HtmlFieldPrefix = "pre";
Rendering\HtmlHelperLabelExtensionsTest.cs (2)
188helper.ViewData.TemplateInfo.HtmlFieldPrefix = "prefix"; 295helper.ViewData.TemplateInfo.HtmlFieldPrefix = nameof(DefaultTemplatesUtilities.ObjectTemplateModel.Property1);
Rendering\HtmlHelperNameExtensionsTest.cs (2)
75helper.ViewData.TemplateInfo.HtmlFieldPrefix = prefix; 124helper.ViewData.TemplateInfo.HtmlFieldPrefix = prefix;
Rendering\HtmlHelperPasswordTest.cs (6)
100helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 118helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 133helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 275helper.ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "MyPrefix"; 367viewData.TemplateInfo.HtmlFieldPrefix = "pre"; 505helper.ViewData.TemplateInfo.HtmlFieldPrefix = "pre";
Rendering\HtmlHelperSelectTest.cs (16)
466viewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 519viewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 546viewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 582helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 869viewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 922viewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 949viewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 985helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 1089helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1"; 1121helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1"; 1145helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1"; 1165helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1"; 1186helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1"; 1216helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1"; 1237helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1"; 1259helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Property1";
Rendering\HtmlHelperTextAreaTest.cs (2)
75helper.ViewData.TemplateInfo.HtmlFieldPrefix = "pre"; 122helper.ViewData.TemplateInfo.HtmlFieldPrefix = "pre";
Rendering\HtmlHelperTextBoxTest.cs (2)
93helper.ViewData.TemplateInfo.HtmlFieldPrefix = "pre"; 140helper.ViewData.TemplateInfo.HtmlFieldPrefix = "pre";
Rendering\HtmlHelperValidationSummaryTest.cs (2)
234html.ViewData.TemplateInfo.HtmlFieldPrefix = "this.is.my.prefix"; 283html.ViewData.TemplateInfo.HtmlFieldPrefix = prefix;
Rendering\HtmlHelperValueTest.cs (5)
36helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 65helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 94helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 123helper.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; 161viewData.TemplateInfo.HtmlFieldPrefix = "FieldPrefix";
ViewDataDictionaryOfTModelTest.cs (3)
40source.TemplateInfo.HtmlFieldPrefix = "prefix"; 79source.TemplateInfo.HtmlFieldPrefix = "prefix"; 160source.TemplateInfo.HtmlFieldPrefix = "prefix";
ViewDataDictionaryTest.cs (1)
195source.TemplateInfo.HtmlFieldPrefix = "prefix";
ViewDataOfTTest.cs (1)
84viewData.TemplateInfo.HtmlFieldPrefix = null;
87 references to HtmlFieldPrefix
Microsoft.AspNetCore.Mvc.TagHelpers (4)
InputTagHelper.cs (1)
213string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) &&
SelectTagHelper.cs (1)
136string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) &&
TextAreaTagHelper.cs (1)
74string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) &&
ValidationMessageTagHelper.cs (1)
64string.IsNullOrEmpty(ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix) &&
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
PartialTagHelperTest.cs (3)
426Assert.Equal(expected, v.ViewData.TemplateInfo.HtmlFieldPrefix); 449Assert.Equal("order.items[0]", viewContext.ViewData.TemplateInfo.HtmlFieldPrefix); 506Assert.Equal(expected, v.ViewData.TemplateInfo.HtmlFieldPrefix);
Microsoft.AspNetCore.Mvc.ViewFeatures (69)
DefaultDisplayTemplates.cs (1)
101var oldPrefix = htmlHelper.ViewData.TemplateInfo.HtmlFieldPrefix;
DefaultEditorTemplates.cs (1)
83var oldPrefix = viewData.TemplateInfo.HtmlFieldPrefix;
DefaultHtmlGenerator.cs (1)
818(!viewData.ModelState.TryGetValue(viewData.TemplateInfo.HtmlFieldPrefix, out var entryForModel) ||
IHtmlGenerator.cs (2)
383/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 431/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set
NameAndIdProvider.cs (1)
130var htmlFieldPrefix = viewContext.ViewData.TemplateInfo.HtmlFieldPrefix;
Rendering\HtmlHelperInputExtensions.cs (27)
27/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 53/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 86/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 112/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 138/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 163/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 190/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 212/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 232/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 256/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 286/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 326/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 365/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 396/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 425/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 450/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 482/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 517/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 545/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 576/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 610/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 637/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 667/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 695/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 728/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 756/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 788/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the
Rendering\HtmlHelperNameExtensions.cs (1)
13/// <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> (if non-empty) to reflect relationship between
Rendering\HtmlHelperSelectExtensions.cs (11)
28/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 62/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 105/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 143/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 181/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 216/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 255/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 298/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 328/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 364/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 398/// Combines <see cref="ViewFeatures.TemplateInfo.HtmlFieldPrefix"/> and the string representation of the
Rendering\IHtmlHelper.cs (9)
188/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set checkbox 276/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 417/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 464/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 472/// <see cref="TemplateInfo.HtmlFieldPrefix"/> (if non-empty) to reflect relationship between current 507/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 546/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 629/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set 657/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and <paramref name="expression"/> to set
Rendering\IHtmlHelperOfT.cs (9)
40/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 138/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 203/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 257/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 268/// <see cref="TemplateInfo.HtmlFieldPrefix"/> (if non-empty) to reflect relationship between current 289/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 322/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 354/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the 384/// Combines <see cref="TemplateInfo.HtmlFieldPrefix"/> and the string representation of the
TemplateInfo.cs (5)
34HtmlFieldPrefix = original.HtmlFieldPrefix; 92return HtmlFieldPrefix; 95if (string.IsNullOrEmpty(HtmlFieldPrefix)) 104return HtmlFieldPrefix + partialFieldName; 107return HtmlFieldPrefix + "." + partialFieldName;
ValidationHelpers.cs (1)
50viewData.ModelState.TryGetValue(viewData.TemplateInfo.HtmlFieldPrefix, out var ms);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
Rendering\HtmlHelperDisplayExtensionsTest.cs (3)
215.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.HtmlFieldPrefix)) 387.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.HtmlFieldPrefix)) 489.Callback((ViewContext v) => v.Writer.WriteAsync(v.ViewData.TemplateInfo.HtmlFieldPrefix))
ViewDataDictionaryOfTModelTest.cs (5)
49Assert.Equal("prefix", viewData1.TemplateInfo.HtmlFieldPrefix); 61Assert.Equal("prefix", viewData2.TemplateInfo.HtmlFieldPrefix); 88Assert.Equal("prefix", viewData1.TemplateInfo.HtmlFieldPrefix); 100Assert.Equal("prefix", viewData2.TemplateInfo.HtmlFieldPrefix); 168Assert.Equal("prefix", viewData.TemplateInfo.HtmlFieldPrefix);
ViewDataDictionaryTest.cs (1)
203Assert.Equal("prefix", viewData.TemplateInfo.HtmlFieldPrefix);
ViewDataOfTTest.cs (2)
70Assert.Equal(string.Empty, viewData.TemplateInfo.HtmlFieldPrefix); 88Assert.Equal(string.Empty, viewData.TemplateInfo.HtmlFieldPrefix);