I have a section of a scene that I would like to submit for an action so that it is an HTML. BeginForm ()
I am also trying to use Html.Telerik (). Like the DatePicker () control and also strongly linked to the form, similar to DropDownListFor , Is it possible ? Using
& lt;% (Html.BeginForm ("MyAction", "Answer")) {%> & Lt;% = Html.DropDownListFor (m = & gt; MS Archived, Model.mites)% & gt; & Lt ;! - The list works fine - & gt; & Lt;% Html.Telerik () DatePicker () .name ("datePicker"). Render (); & Gt%; & Lt ;! - How do I get this strong-type link? - & gt; & Lt; Input type = "submit" value = "submit" /> & Lt;%}% & gt; The model of this scene has the proper properties:
public; Set; } Received Public String Printer {Received; Set; } Controller code:
Public Class Respondent Controller: Controller {[HTTPGet} Public Functioning MyAction (Int Select Itam, String Selected) {// on Form To submit the selected ITEM value, set the requirement for the same}}
< P> Your parameter is incorrect. It needs to be named as the name of the name that you had given for control like 'datePicker'. Public Class Response Controller: Controller [[HTTPGet] Public Functioning MyAction (Int Select Item, DateTime? Date Picker) {// The selected ITEM value submitted on the form / requirement is determined for the same Do}}
Comments
Post a Comment