Personalized Website
Overview
A simple form demonstrating how to set and update a customer's personalized website information using the web service.
Namespaces
The following sample requires these namespaces:
1 | using ExigoWebService; |
Exigo API Authentication
The following sample accesses the web service using the ExigoApi object:
1 2 3 4 5 6 7 8 9 | return new ExigoApi { ApiAuthenticationValue = new ApiAuthentication { LoginName = exigoAPILoginName, Password = exigoAPIPassword, Company = exigoAPICompany } }; |
jQuery
We use jQuery UI Themes for styling.
1 2 3 | <link href= "<%=this.ResolveUrl(" ../../Themes/start/jquery-ui.custom.css ") %>" rel= "stylesheet" type= "text/css" /> <script src= "<%=this.ResolveUrl(" ../../Scripts/jquery.min.js ") %>" type= "text/javascript" ></script> <script src= "<%=this.ResolveUrl(" ../../Scripts/jquery-ui.min.js ") %>" type= "text/javascript" ></script> |
Populate The Country/Region Dropdown Menus
We use the webservice GetCountryRegions method to request a list of countries.
1 2 3 4 5 | // Get the data var response = Exigo.GetCountryRegions( new GetCountryRegionsRequest() { CountryCode = countryCode }); |
The webservice RegionResponse method returns the requested regions.
1 2 3 4 5 6 7 8 9 10 | // Populate the new regions into the dropdown foreach (RegionResponse r in response.Regions) { regionList.Items.Add( new ListItem () { Value = r.RegionCode, Text = r.RegionName }); } } |