title: Cannot use VB because another language has been specified
body: <p>I have been trying to troubleshoot this error on a page that has been working fine until recently. I was wondering if someone can help me identify the cause of this error as I have tried everything I can to fix it, with no success.</p>
  
  <p><strong>Error Message:</strong></p>
  
  <blockquote>
    <p>Error 27  Cannot use 'VB' because another language has been specified
    earlier in this page (or was implied from a CodeFile
    attribute).   W:\admin.fctl.ucf.edu\inventory\old\address.ascx    2</p>
  </blockquote>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>&lt;%@ Control CodeBehind="address.ascx.cs" Language="c#" AutoEventWireup="false" Inherits="Inventory1.address" %&gt;
  &lt;Script language="VB" runat="Server"&gt;
  
          Public Property Address1 as string
              Get
                  Return txtAddress1.text
              End Get
              Set
                  txtAddress1.text = value
              End Set     
          End property
  
          Public Property Address2 as string
              Get
                  Return txtAddress2.text
              End Get
              Set
                  txtAddress2.text = value
              End Set 
          End property
  
          Public Property city as string
              Get
                  Return txtcity.text
              End Get
              Set
                  txtcity.text = value
              End Set     
          End property
  
          Public Property state as string
              Get
                  Return cbostate.selecteditem.text
              End Get
              Set
                  cbostate.selectedindex = value
              End Set     
          End property
  
          Public Property zip as string
              Get
                  Return txtzip.text
              End Get
              Set
                  txtzip.text = value
              End Set 
          End property
  
          Public Property country as string
              Get
                  Return cbocountry.selecteditem.text
              End Get
              Set
                  cbocountry.selectedindex = value
              End Set     
          End property
  
          Public Property phone1 as string
              Get
                  Return txtphone1.text
              End Get
              Set
                  txtphone1.text = value
              End Set     
          End property
  
          Public Property phone2 as string
              Get
                  Return txtphone2.text
              End Get
              Set
                  txtphone2.text = value
              End Set     
          End property
  
          Public Property mobile as string
              Get
                  Return txtmobile.text
              End Get
              Set
                  txtmobile.text = value
              End Set     
          End property
  
          Public Property email as string
              Get
                  Return txtemail.text
              End Get
              Set
                  txtemail.text = value
              End Set     
          End property
  
          Public Property fax as string
              Get
                  Return txtfax.text
              End Get
              Set
                  txtfax.text = value
              End Set     
          End property
  
          Public Property pager as string
              Get
                  Return txtpager.text
              End Get
              Set
                  txtpager.text = value
              End Set     
          End property
  &lt;/Script&gt;
  </code></pre>