here is my code ......
@using (@Html.BeginForm("Bonus", "MyPrize", new { @id = UrlParameter.Optional }, FormMethod.Post))
{
if (ViewData["id"].ToString() == "2")
{
@Html.Label("From Date: ")
@*@Html.TextBox("txtFrmDt", "", new { @class = "form-control" })*@
@**@
@Html.TextBox("txtFromDt", "", new { @class = "form-control", @readonly = "readonly" })
@Html.Label("To Date: ")
@*@Html.TextBox("txtToDt", "", new { @class = "form-control" })*@
@**@
@Html.TextBox("txtToDt", "", new { @class = "form-control", @readonly = "readonly" })
@* formaction="GetVipTrans" formmethod="post" *@
}
[HttpPost]
public ActionResult GetVipTrans(string txtFromDt, string txtToDt, string Submit)
{
if (Submit == "Submit")
{
... code Here
} 1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Ramesh PalanivelRank #372 · 6.8K reputationPosted Sep 10, 2017, 11:56 PM EDT