Hello
i have got the bellow partial view
@model AccountPortal.Models.AddressModel
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>AddressModel</h4>
<hr />
<p>
@Html.Label("House Number or Name")
@Html.EditorFor(model => model.AddressLine1)
</p>
<p>
@Html.LabelFor(model => model.Postcode)
@Html.EditorFor(model => model.Postcode)
</p>
</div>
}
<div>
@Html.ActionLink("Continue", "GetAddress", new { home = Model.AddressLine1, postcode =Model.Postcode })
@Html.ActionLink("Don't Know the Postcode", "AddressManuallyEnter")|
@Html.ActionLink("BFPO Customer", "ManuallyAddForBFPO")
</div>
and after filling the House Number, and the postcode clicked on the Continue actionLink which too me to GetAddress method but
the home, postcode are null.
what i have been missing out
bellow is my GetAddress Action method
public ActionResult GetAddress(string home, string postcode)
{
var A = SelectedAddress;
List< AddressModel> model = AddressUtility.FindAddressByPostcode(home, postcode, false);
AddressUtility.BuildAddressSelectList(ref model);
return PartialView(model);
}
Appreciate all your help