Here I got the answer for the above question: I used Jquery Ajax
** added data-attribute to the button**
<input type="button" data-paf-url="/paf/index" id="postcodebutton"
value="check your address" />
**added Id for the textbox**
@Html.TextBoxFor(model => model.PostCode,
new { @class = "form-control",id="postcode", placeholder="Postcode" })
<script>
$(document).ready(function () {
$("#postcodebutton").click(function (e) {
e.preventDefault();
var postc= $("#postcode").val();
$.ajax({
url: $(this).attr('data-paf-url'),
type: 'GET',
data:{Postcode:postc},
success: function (data, textStatus, jqXHR) {
// my code
},
error: function (jqXHR, textStatus, errorThrown) {
alert('An error occured status' + textStatus + 'error thrown:' + errorThrown);
}
});
});
});
</script>