Multiple attempts to use few methods with different combinations of parameters don't work for me so far.
@Html.CheckBox()
causes strange behaviour: I give it 2 parameters (@Html.CheckBox(Html, "asdf")
) - it says thatbest extension method overload 'DotNetNuke.Web.Mvc.Helpers.HtmlInputExtensions.CheckBox
has 3 parameters ('DotNetNuke.Web.Mvc.Helpers.HtmlInputExtensions.CheckBox(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper, string, bool)'
). I give it 3 parameters (@Html.CheckBox(Html, "asdf", true)
), it says then that best overload has 4 parameters. What is going on???@Html.CheckBoxFor()
=>CS1501: No overload for method 'CheckBoxFor' takes 0 arguments
@Html.CheckBoxFor("asdf")
=>CS1061: 'ToSic.Sxc.Dnn.Web.IHtmlHelper' does not contain a definition for 'CheckBoxFor' and no extension method 'CheckBoxFor' accepting a first argument of type 'ToSic.Sxc.Dnn.Web.IHtmlHelper' could be found (are you missing a using directive or an assembly reference?)
. What??? Actually I've just given you a string parameter, notIHtmlHelper
.@System.Web.WebPages.Html.CheckBox("test")
causes errorCS0234: The type or namespace name 'CheckBox' does not exist in the namespace 'System.Web.WebPages.Html' (are you missing an assembly reference?)
How do I add checkbox here and paste its value in button url?