I am currently developing a website that requires the client to complete there application by purchasing the product via a 3rd party vendor. The payment provider requires certain payment details to be passed via a POST to there secure url, the post contains a number of hidden html fields of which i pass data to from the pages code behind, this was working exactly as it should until we opted to perform AVS checks on the clients payments. To do this the address details need to be passed to the payment provider using exactly the same technique.
The issue i have is the naming convention for the fields is differenet from the others. The html hidden controls need to be named 'billingAddress.street, billlingAddress.houseNameO
rNumber, billingAddress.city etc. When i name the controls with in this way i am unable to assign values to them because they are not recognised when i attempt to find the controls in my code behind, if i add a 'runat=server' attribute i get an exception.
When asking the support team they are unable to help, as they do not have a solution!! They also have no idea how other clients deal with this issue, the best solution i have been given is to use '.' in place of the "." in the controls name, i have no idea how i can implement this.
Any help would be appreciated on this i think there is a straight forward solution, but i have spent a couple of days going round in circles and am now spent!! I have attached some code examples and can provide more if required.
Thanks in advance,
<input type="hidden" id="billingAddressStreet" name="billingAddress.street"
<input type="hidden" id="billingAddressHouseNumberOrName" name="billingAddress.houseNumberOrName"
<input type="hidden" id="billingAddressCity" name="billingAddress.city"
<input type="hidden" id="billingAddressPostalCode" name="billingAddress.postalCode"
<input type="hidden" id="billingAddressStateOrProvince" name="billingAddress.stateOrProvince"
<input type="hidden" id="billingAddressCountry" name="billingAddress.country"
Protected Sub ExtractDetails_BillingAddress(ByVal _rawString As String)
' Split the query_string data
Dim _detailsCollection() As String = _rawString.Split(",")
' Iterate through the supplied payment details
For _index As Integer = 0 To (_detailsCollection.Count - 1)
' Define each each of the parameters
Select Case _index
.billingAddressStreet.Value = _detailsCollection(_index)
.billingAddressHouseNumberOrName.Value = _detailsCollection(_index)
.billingAddressCity.Value = _detailsCollection(_index)
.billingAddressPostalCode.Value = _detailsCollection(_index)
.billingAddressStateOrProvince.Value = _detailsCollection(_index)
.billingAddressCountry.Value = _detailsCollection(_index)