i have textbox
@Html.TextBox("report_id", null, new { @class = "form-control col-md-7 col-xs-12", @Value = @ViewBag.Reports_ID, @readonly = true })
i want use actionlink to send textbox value to controller. but i can't get textbox value.
@Html.ActionLink("Preview", "Update", "Home", new { @report_id = Request.QueryString["report_id "] }, new { @class = "btn btn-info", target = "_blank" })
Pls help, Thanks
hrefattribute of the link based on the edited value in the textbox (or just enclose the textbox in a form withFormMethod.Get. And there is no point addingnew { @report_id = Request.QueryString["report_id "] }- that's just adding the original value ofreport_id