Hi, I need help.
I'm working with asp.net Core 1.0 RC1 and the Telerik UI for ASP.NET MVC Q2 2016 with latest .714 patch
I would like to pass the content of an editor to my controller when clicking on a button without use of a model.
My View
<
p
>
<
a
asp-action
=
"SaveScreen"
asp-route-strValue
=
"???????"
asp-route-strMessage
=
"My Message"
id
=
"#LINE1_SCR"
SaveScreen"
class
=
"btn btn-primary"
>Save</
a
>
</
p
>
<
div
>
@(Html.Kendo().Editor()
.Name("LINE1_SCR")
.Tools(tools => tools.Clear().Bold().FontName().ForeColor().BackColor())
.Tag("DivLine")
.Value(@<
text
><
p
>Content of the editor</
p
></
text
>)
)
</
div
>
My controller
public
async Task<IActionResult> SaveScreen(
string
strMessage)
{
var strControllerMessage = strMessage;
return
View();
}
As you can see I pass parameters using the "asp-route..." razor syntax feature of asp.net core.
But I don't find any way to use the right syntax for passing the content of the editor in the "strValue" parameters of the push button.
Any help will be very appreciated.
Best regards.