{"id":49,"date":"2011-10-06T13:45:00","date_gmt":"2011-10-06T13:45:00","guid":{"rendered":"https:\/\/wdev-blog.azurewebsites.net\/index.php\/2011\/10\/06\/jquery-ajax-versus-server-side-event-handler\/"},"modified":"2011-10-06T13:45:00","modified_gmt":"2011-10-06T13:45:00","slug":"jquery-ajax-versus-server-side-event-handler","status":"publish","type":"post","link":"http:\/\/panahy.nl\/index.php\/2011\/10\/06\/jquery-ajax-versus-server-side-event-handler\/","title":{"rendered":"jQuery.Ajax versus Server-side event handler"},"content":{"rendered":"<p><!--ppd1000055--> <\/p>\n<div>\n<p style=\"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto\"><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-language:NL\">This sample demonstrates two ways of getting address from the server: using  server-side event handler versus calling jQuery.Ajax<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black;mso-fareast-language:NL\">The following is the markup that provides two fields with javascript call on the change event. It also provides a button  that is wired to a server side methode: <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">div<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">h3<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  Address Test<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">h3<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabbing from the textboxes will verify if calling the webservice is required.<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">table<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">width<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;100%&quot;&gt;&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">tr<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">table<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">tr<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  Huisnummer *<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">div<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">class<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;FieldContainer&quot;&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">asp<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">:<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">TextBox<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">runat<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;server&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ID<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;textboxHousenumber&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ClientIDMode<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;Static&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">CssClass<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;TextField  TextField02&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">onchange<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;VerifyAddress();&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ValidationGroup<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;KlantAddress&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">\/&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">div<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">tr<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">tr<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  Postcode *<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">div<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">class<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;FieldContainer&quot;&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">asp<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">:<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">TextBox<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">runat<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;server&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ID<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;textboxPostcode&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ClientIDMode<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;Static&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">CssClass<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;TextField  TextField02&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp; <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">MaxLength<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;7&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">onchange<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;VerifyAddress();&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ValidationGroup<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;KlantAddress&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">\/&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">div<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">td<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">tr<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">table<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Server side call:<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">br<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">\/&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">asp<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">:<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">Button<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ID<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;Button1&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">runat<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;server&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">OnClick<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;ShowAddress&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">Text<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;Get Adres&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ToolTip<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;CustomerDataController&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">\/&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">&lt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">asp<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">:<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">Label<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">runat<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;server&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red;mso-fareast-language:NL\">ID<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=&quot;lblAddress&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">\/&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black;mso-fareast-language:NL\">Assume we have a we DBLLayer that provides an address or throws an exception.<br \/>The event handler would be something like this: <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black;mso-fareast-language:NL\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-fareast-language:NL\">\/\/\/<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green;mso-fareast-language:NL\"> <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-fareast-language:NL\">&lt;summary&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green;mso-fareast-language:NL\">Server side event handler<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:gray;mso-fareast-language:NL\">&lt;\/summary&gt;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">public<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">void<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; ShowAddress(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">object<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  sender, <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">EventArgs<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; e)<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; {<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">try<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; adres = <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">DBLayer<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">.GetAddress(textboxPostcode.Text,  textboxHousenumber.Text);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ShowAdres(adres);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">catch<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; (<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Exception<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  ex)<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LogError(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">&quot;Error  :- &quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; &#43; ex.Message);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; }<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black;mso-fareast-language:NL\">And the Javascript will look like this: <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black;mso-fareast-language:NL\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">function<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; VerifyAddress() {<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:darkgreen;mso-fareast-language:NL\">\/\/ This method is calling the ShowAddress only if both parameters are filled in. <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;#<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&lt;%<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">lblAddress.ClientID <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">%&gt;&quot; ).text(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  );<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; postcode = $(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;#<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&lt;%<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">textboxPostcode.ClientID <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">%&gt;&quot; ).val();<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; huisnummer = $(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;#<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&lt;%<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">textboxHousenumber.ClientID <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">%&gt;&quot; ).val();<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">if<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; (postcode &amp;&amp; huisnummer &amp;&amp; parseInt(huisnummer)  &gt; 0) {<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;#<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&lt;%<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">lblAddress.ClientID <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">%&gt;&quot; ).text(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;calling the server&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  );<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; data = <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">{<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">  postcode:&#8217;&quot;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; &#43; postcode &#43; &lt;span&#8217; , huisnummer: &quot;&nbsp; &#43; huisnummer &#43; <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot; <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">}<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  ;<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">jQuery.ajax({<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: &lt;span&#8217; ,<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contentType: &lt;span&#8217;application\/json;&#8217; ,<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data: data,<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataType: &lt;span&#8217; ,<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: &lt;span&#8217; ,<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; success: OnGetAddressComplete,<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error: OnErrorReceived<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; }<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">function<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  OnErrorReceived(xhr, ajaxOptions, thrownError) {<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; message = jQuery.parseJSON(xhr.responseText);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;#<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&lt;%<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">lblAddress.ClientID <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">%&gt;&quot; ).text(<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;ERROR (&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; &#43; xhr.status &#43; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;) &#8211; &quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; &#43; message.Message);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; }<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">function<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  OnGetAddressComplete(result) {<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:darkgreen;mso-fareast-language:NL\">\/\/ display the result<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  adres = result.d;<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">&quot;#<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&lt;%<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">=<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:maroon;mso-fareast-language:NL\">lblAddress.ClientID <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">%&gt;&quot; ).text(<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">adres.Straat &#43; &lt;span&#8221;&nbsp; &#43;<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adres.Huisnummer &#43; &lt;span&#8217;,&#8217;&nbsp; &#43;<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; adres.Postcode &#43; &lt;span&#8221;&nbsp; &#43; adres.Plaats);<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">}<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black;mso-fareast-language:NL\">And finally the webservice will be like:<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;color:black;mso-fareast-language:NL\"><o:p>&nbsp;<\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; [System.Web.Services.<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">WebMethod<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  ()]<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">public<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">static<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; Adres GetAddress(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">string<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  postcode, <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">string<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; huisnummer)<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; {<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">if<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; (!IsPostcode(postcode))<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">throw<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">new<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Exception<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> (<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">&quot;Invalid  Postcode.&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> );<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">int<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  hNr = 0;<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">if<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; (!<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Int32<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  .TryParse(huisnummer, <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">out<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; hNr))<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">throw<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> &nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">new<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Exception<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> (<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">&quot;Invalid  house number.&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> );<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  result = <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">DBLayer<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> .GetAddress(postcode,  huisnummer);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">if<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  (result == <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">null<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> )<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">throw<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">new<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Exception<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> (<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">&quot;  Unknown address.&quot;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> );<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"><o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">return<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  result;<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; }<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; <o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">public<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">static<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">bool<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> IsPostcode(<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">string<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;  zipcode)<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">{<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">var<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; ZipcodeRegex = <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">@&quot;^[1-9][0-9]<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">{<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">3<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">}<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">[a-zA-Z]<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">{<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">2<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">}<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515;mso-fareast-language:NL\">[\\s]*$&quot;<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">  ;<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Regex<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; r = <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">new<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Regex<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> (ZipcodeRegex, <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">RegexOptions<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\"> .IgnoreCase);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF;mso-fareast-language:NL\">Match<\/span><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; m = r.Match(zipcode);<o:p><\/o:p><\/span><\/p>\n<p><span lang=\"EN-US\" style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue;mso-fareast-language:NL\">return<\/span><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp; m.Success;<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp; &nbsp;&nbsp;}<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;mso-fareast-language:NL\">&nbsp;&nbsp;&nbsp;&nbsp; <o:p><\/o:p><\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This sample demonstrates two ways of getting address from the server: using server-side event handler versus calling jQuery.Ajax The following is the markup that provides two fields with javascript call on the change event. It also provides a button that is wired to a server side methode: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt; Address Test&lt;\/h3&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabbing from the textboxes &hellip; <a href=\"http:\/\/panahy.nl\/index.php\/2011\/10\/06\/jquery-ajax-versus-server-side-event-handler\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;jQuery.Ajax versus Server-side event handler&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Pouya Panahy","author_link":"http:\/\/panahy.nl\/index.php\/author\/pouya\/"},"uagb_comment_info":0,"uagb_excerpt":"This sample demonstrates two ways of getting address from the server: using server-side event handler versus calling jQuery.Ajax The following is the markup that provides two fields with javascript call on the change event. It also provides a button that is wired to a server side methode: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt; Address Test&lt;\/h3&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabbing from the textboxes&hellip;","_links":{"self":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/49"}],"collection":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":0,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}