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 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramesh PalanivelPosted Sep 11, 2017, 3:56 AM