title: extended and basic address box
body: <p>I am having a user control in my web application. it is to input the communication address.</p>
  
  <p>2 modes are there to input the address: <code>extended and basic</code>.</p>
  
  <p>In <code>extended</code>, we enter address1, address2, address3, city, state, zip and country in different controls and in  the <code>basic mode</code> we enter all the above details in a simple multiline text box.</p>
  
  <p>A toggle button is used to switch between these modes. </p>
  
  <p>It works if i toggle from extended to basic, because it is simple to add all the non empty textboxes with a <code>vbcrlf</code> and display it in a multi line text box.</p>
  
  <p>My problem is when we switch from basic to extended. I want to know if there are empty lines or not.
  I would be still better if you could provide me with an existing user control with same functionality.</p>
  
  <p>Thanks.</p>
  
  <p>===================================</p>
  
  <pre><code>Extended Mode - I enter every thing individually in different textboxes.
  
  +-------------+
  |Address 1    |
  +-------------+
  |             |
  +-------------+
  |Address 3    |
  +-------------+
  |             |
  +-------------+
  |State        |
  +-------------+
  |             |
  +-------------+
  |Country      |
  +-------------+
  
            Toggle    
  
  
  Present scenario - The array
  
  array(0) = "Address1"
  array(1) = ""
  array(2) = "Address2"
  array(3) = ""
  array(4) = "State"
  array(5) = ""
  array(6) = "Country"
  
  
  I click on the Toggle and switch to Basic mode. Here I am displaying all the address lines which are not empty in a long text box with multiline = True.
  
  +-------------+
  |Address1     |
  |Address3     |
  |State        |
  |Country      |
  |             |
  +-------------+
  
      Toggle
  
  Now, i will edit the address and delete the Address3 which is on the line 2.
  
  +-------------+
  |Address1     |
  |State        |
  |Country      |
  |             |
  +-------------+
  
      Toggle
  
  Now when i click on the toggle, i need to see the textboxes in the extended mode are having the correct values.
  
  +-------------+
  |Address 1    |
  +-------------+
  |             |
  +-------------+
  |             |
  +-------------+
  |             |
  +-------------+
  |State        |
  +-------------+
  |             |
  +-------------+
  |Country      |
  +-------------+
  
            Toggle    
  
  I think, it is clear. i need to go by line by line only as i can enter the same text in two lines.
  
  for example
  City - New York.
  State - New York.
  
  in the above case, i need to identify which new york (City / State) is deleted / modified.
  
  Thanks.
  -=====================
  </code></pre>