Beginform is not working in Asp.net mvc control whenI am trying to send the values
- by kumar
Hello friends i have a beginform is soemthing like this,
<% using (Html.BeginForm("edit",
(Model.ExceptionCategoryID == "EXP") ? "expense" : "pricing", FormMethod.Post,
new { @id="exc-" + Model.ExceptionID}))
{ %>
<input type="hidden" id="Status" runat="server"/>
<%= Html.ValidationSummary(true)%>
input submit button
<input id="bSubmit" type="submit" class="button" value="Save" />
<script type="text/javascript">
$(document).ready(function() {
$('#bSubmit').click(function() {
var Status = "<%=Model.ExceptionStatus.Trim()%>";
alert(Status);
$('#1_Status').attr('value',Status);
});
</script>
on sbmit I am trying to send the Status value.. on controler
var sta = Request.Form[0];
I am getting something like 3%24Status in the From key..
why its hapeening ?
thanks