how to get this value on method post using asp.net mvc
Posted
by kumar
on Stack Overflow
See other posts from Stack Overflow
or by kumar
Published on 2010-05-26T19:50:51Z
Indexed on
2010/05/26
20:11 UTC
Read the original article
Hit count: 247
ASP.NET
|asp.net-mvc
I have a lable in the view
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CDC.ITT.Info.StudentBE>" %>
<label for="FollowupDate">
Follow-up:
<span><input type="text" id="exc-flwup" name="fdate" /></span>
</label>
$("input[id^='exc-flwup']").datepicker({
duration: '',
showTime: true,
constrainInput: true,
stepMinutes: 30,
stepHours: 1,
altTimeField: '',
time24h: true,
minDate: 0
});
when I click on the input field I am getting popupcalender to select the date.
My method post is
<% using (Html.BeginForm("Update", "home", FormMethod.Post, new { @id = "exc-"}))
{ %>
<%= Html.ValidationSummary(true)%>
then Followupdate user is goign to select the perticular date he wants.. when this method post to the method..
public ActionResult Update(StudentBE e)
{
return View();
}
this e should have the date value but I am not able to see the date selected there..
is there anything wrong I am doing here?
thanks
© Stack Overflow or respective owner