{"action":"reopened","issue":{"url":"https://api.github.com/repos/formvalidation/support/issues/569","repository_url":"https://api.github.com/repos/formvalidation/support","labels_url":"https://api.github.com/repos/formvalidation/support/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/formvalidation/support/issues/569/comments","events_url":"https://api.github.com/repos/formvalidation/support/issues/569/events","html_url":"https://github.com/formvalidation/support/issues/569","id":150358659,"number":569,"title":"MVC Model Help","user":{"login":"mehmetalidumlu","id":15678340,"avatar_url":"https://avatars.githubusercontent.com/u/15678340?v=3","gravatar_id":"","url":"https://api.github.com/users/mehmetalidumlu","html_url":"https://github.com/mehmetalidumlu","followers_url":"https://api.github.com/users/mehmetalidumlu/followers","following_url":"https://api.github.com/users/mehmetalidumlu/following{/other_user}","gists_url":"https://api.github.com/users/mehmetalidumlu/gists{/gist_id}","starred_url":"https://api.github.com/users/mehmetalidumlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehmetalidumlu/subscriptions","organizations_url":"https://api.github.com/users/mehmetalidumlu/orgs","repos_url":"https://api.github.com/users/mehmetalidumlu/repos","events_url":"https://api.github.com/users/mehmetalidumlu/events{/privacy}","received_events_url":"https://api.github.com/users/mehmetalidumlu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T12:39:39Z","updated_at":"2016-04-22T15:20:51Z","closed_at":null,"body":"Hi,\r\nI will post form to controller but when i use Razor @Html.TextBoxFor(model...) instead of normal HTML input cant validate form. There is form code:\r\n\r\n```\r\n@using (Ajax.BeginForm(\"SaveRoute\", \"Partial\", new { }, new AjaxOptions() { HttpMethod = \"POST\" }, new { @class = \"form-horizontal\", id = \"subway_station_info_form\" }))\r\n{\r\n\r\n\t<div class=\"form-group\">\r\n\t\t<label class=\"col-xs-3 control-label\">İstasyon ID</label>\r\n\t\t<div class=\"col-xs-9\">\r\n\t\t\t@Html.TextBoxFor(model => model.ID, new { @class = \"form-control\", placeholder = \"İstasyon ID Numarası Belirtiniz\" })\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<div class=\"form-group\">\r\n\t\t<label class=\"col-xs-3 control-label\">İstasyon Adı</label>\r\n\t\t<div class=\"col-xs-9\">\r\n\t\t\t@Html.TextBoxFor(model => model.ADI, new { @class = \"form-control\", placeholder = \"İstasyon Adını Giriniz\" })\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<hr />\r\n\r\n\t<div class=\"form-group reset-bottom-margin\">\r\n\r\n\t\t<div class=\"col-xs-6 left-justify\">\r\n\t\t\t<button type=\"button\" class=\"btn btn-primary\" data-toggle=\"modal\" onclick=\"getFileExplorer();\"><span class=\"basar-folder-open-o\"></span>&nbsp; Dosya Gezgini</button>\r\n\t\t</div>\r\n\r\n\t\t<div class=\"col-xs-6 right-justify\">\r\n\t\t\t<button type=\"button\" class=\"btn btn-warning\"><span class=\"glyphicon glyphicon-remove\"></span>&nbsp; İptal</button>\r\n\t\t\t<button type=\"submit\" name=\"submitButton\" class=\"btn btn-success\"><span class=\"glyphicon glyphicon-ok\"></span>&nbsp; Bilgileri Kaydet</button>\r\n\t\t</div>\r\n\r\n\t</div>\r\n}\r\n```\r\n\r\nAnd javascript:\r\n\r\n```\r\n$(document).ready(function () {\r\n        $('#subway_station_info_form').formValidation({\r\n            framework: 'bootstrap',\r\n            icon: {\r\n                valid: 'glyphicon glyphicon-ok',\r\n                invalid: 'glyphicon glyphicon-remove',\r\n                validating: 'glyphicon glyphicon-refresh'\r\n            },\r\n            fields: {\r\n                ADI: {\r\n                    err: 'tooltip',\r\n                    validators: {\r\n                        notEmpty: {\r\n                            message: 'İstasyon Adını Giriniz'\r\n                        }\r\n                    }\r\n                },\r\n                ID: {\r\n                    err: 'tooltip',\r\n                    validators: {\r\n                        notEmpty: {\r\n                            message: 'İstasyon ID Numarasını Belirtiniz'\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        });\r\n\r\n    });\r\n```\r\n\r\n**Validation throw error message an disable submit button. BUT, request send to server /Partial/SaveRoute action result. How can i avoid send request when validationform throw error message?**\r\n"}}