I have a page that I am trying to update a form with information populated from a combobox selection. Basically, the user selects the name from the dropdown, and then I want the rest of the fields to be updated with some data. The problem is, as soon as I add the onclientselectedindexchanged="someFunction" the combobox stops working i.e. you can't click on it to drop down. Here is my code. Please note my radscripmanager is in the master page of this file. If I need to post my master page I can. What am I doing wrong? Thanks
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/admin/Admin.Master"
CodeBehind="EditEntity.aspx.vb" Inherits="ClickableCommunity.EditEntity" %>
<%@ Register Assembly="RadMenu" Namespace="Telerik.WebControls" TagPrefix="radM" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<telerik:RadScriptBlock ID="ScriptBlock1" runat="server">
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAANvmC5YwARPSDAHoiTGyjXRR-496V5WiR7LkdzcFVQzFkDe07hhSkvWarTS8udi3TGEWMPQwT-FAGew"
type="text/javascript"></script>
<script type="text/javascript">
function getLatLon(sender, args) {
var street = $find('<%= streetInput.ClientID %>').get_value();
var city = $find('<%= cityInput.ClientID %>').get_value();
var state = $find('<%= stateInput.ClientID %>').get_value();
var zip = $find('<%= zipInput.ClientID %>').get_value();
var address = (street + ", " + city + " " + zip);
geocodeAddress(address);
} //getLatLon
//this function takes in an address and returns
//the lattitude and longitude.
function geocodeAddress(address) {
var coder = new GClientGeocoder();
coder.getLatLng(address,
function(point) {
//the id of the tool tip
var toolTip = $find("<%= cantFindLocation.ClientID %>");
if (!point) {
//show the tool tip if it is hidden
if (!toolTip.isVisible()) {
toolTip.show();
} //if
//the tool tip is showing and the clicked the link
else {
toolTip.set_text("Still no dice, <a href=\"#\" onclick=\"getLatLon()\">" +
"try again</a> or get them <a href=\"" +
"http://itouchmap.com/latlong.html\" target=\"_blank\"" +
">manually</a>.");
} //else
} //if
//we set the textboxes to their values
else {
var templat = $find('<%= latInput.ClientID %>');
var templon = $find('<%= lonInput.ClientID %>');
templat.set_value(point.lat());
templon.set_value(point.lng());
//hide the tooltip if its showing
if (toolTip.isVisible()) {
toolTip.hide();
}
} //else
} //function(point)
);
} //geocodeAddress
</script>
</telerik:RadScriptBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px"
Width="300px" EnableHistory="True" HorizontalAlign="NotSet">
<table width="350px">
<tr>
<td>
<center>
<span class="adminTableLabel">Select Entity</span>
<telerik:RadComboBox ID="businessNameDrop" runat="server" Skin="Web20"
Width="150px" MarkFirstMatch="True"
DropDownWidth="150px" CssClass="stateDropDownText" Font-Size="16px"
DataSourceID="businessDataSource" DataTextField="name"
DataValueField="businessid" AutoPostBack="true"
OnClientSelectedIndexChanged="RadComboBox1_TextChanged">
<CollapseAnimation Duration="1000" Type="InOutBack" />
</telerik:RadComboBox>
<asp:SqlDataSource ID="businessDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:connectionString %>"
SelectCommand="getAllBusinesses" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td></td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">Entity Name</span>
<telerik:RadTextBox ID="entityNameInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="valTxtName" ControlToValidate="entityNameInput" ErrorMessage="Please enter a Business Name."
CssClass="errorMessage" runat="server" />
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td></td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">Street Address</span>
<telerik:RadTextBox ID="streetInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="addressValidator" ControlToValidate="streetInput"
ErrorMessage="Please enter an address." CssClass="errorMessage" runat="server" />
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td>
<center>
<span class="adminTableLabel">City</span>
<telerik:RadTextBox ID="cityInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="cityValidator" ControlToValidate="cityInput" ErrorMessage="Please enter a City."
CssClass="errorMessage" runat="server" />
</center>
</td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">State</span>
<telerik:RadComboBox ID="stateInput" runat="server" Skin="Web20" Width="150px" ChangeTextOnKeyBoardNavigation="true"
MarkFirstMatch="true" DropDownWidth="150px" CssClass="stateDropDownText" Font-Size="16px">
<CollapseAnimation Duration="1000" Type="InOutBack" />
<Items>
<telerik:RadComboBoxItem Text="Alabama" Value="AL" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Alaska" Value="AK" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Arizona" Value="AZ" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Arkansas" Value="AR" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="California" Value="CA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Colorado" Value="CO" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Connecticut" Value="CT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Delaware" Value="DE" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="District Of Columbia" Value="DC" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Florida" Value="FL" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Georgia" Value="GA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Hawaii" Value="HI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Idaho" Value="ID" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Illinois" Value="IL" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Indiana" Value="IN" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Iowa" Value="IA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Kansas" Value="KS" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Kentucky" Value="KY" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Louisiana" Value="LA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Maine" Value="ME" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Maryland" Value="MD" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Massachusetts" Value="MA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Michigan" Value="MI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Minnesota" Value="MN" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Mississippi" Value="MS" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Missouri" Value="MO" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Montana" Value="MT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Nebraska" Value="NE" CssClass="stateDropDownText"
Selected="true" />
<telerik:RadComboBoxItem Text="Nevada" Value="NV" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New Hampshire" Value="NH" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New Jersey" Value="NJ" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New Mexico" Value="NM" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New York" Value="NY" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="North Carolina" Value="NC" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="North Dakota" Value="ND" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Ohio" Value="OH" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Oklahoma" Value="OK" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Oregon" Value="OR" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Pennsylvania" Value="PA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Rhode Island" Value="RI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="South Carolina" Value="SC" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="South Dakota" Value="SD" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Tennessee" Value="TN" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Texas" Value="TX" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Utah" Value="UT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Vermont" Value="VT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Virginia" Value="VA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Washington" Value="WA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="West Virginia" Value="WV" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Wisconsin" Value="WI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Wyoming" Value="WY" CssClass="stateDropDownText" />
</Items>
</telerik:RadComboBox>
<span class="errorMessage" style="visibility: hidden;">spacer text</span>
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td>
<center>
<span class="adminTableLabel">Zip</span>
<telerik:RadTextBox ID="zipInput" runat="server" Skin="Web20" Width="150px">
<ClientEvents OnFocus="getLatLon" />
</telerik:RadTextBox>
<asp:RegularExpressionValidator ID="reZipCode" ControlToValidate="zipInput" ValidationExpression="^\d{5}$|^\d{5}-\d{4}$"
ErrorMessage="Not a valid Zip code!" Display="static" runat="server" CssClass="errorMessage" />
<telerik:RadToolTip runat="server" ID="cantFindLocation" Skin="Web20" Height="100px"
Width="400px" ManualClose="true" Position="TopRight" RelativeTo="Element" TargetControlID="streetInput">
<span class="normalText">I can't find the address you specified. Please make sure that
it is typed in correctly. If you would like to manually find the latitude and longitude,
go to <a href="http://itouchmap.com/latlong.html" target="_blank">here</a> and get
the coordinates. <a href="#" onclick="getLatLon()">Look Again</a> </span>
</telerik:RadToolTip>
</center>
</td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">Latitude</span>
<telerik:RadTextBox ID="latInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="latValidator" ControlToValidate="latInput" ErrorMessage="Please enter a Latitude"
CssClass="errorMessage" runat="server" />
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td>
<center>
<span class="adminTableLabel">Longitude</span>
<telerik:RadTextBox ID="lonInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="lonValidator" ControlToValidate="lonInput" ErrorMessage="Please enter a Business Name"
CssClass="errorMessage" runat="server" />
</center>
</td>
<td>
<a href="#" onclick="getLatLon()">
<asp:Image ID="refresh" runat="server" ImageUrl="~/images/refresh.png" Height="20px"
Width="20px" AlternateText="Check coordinates again." />
</a>
</td>
</tr>
</table>
<table width="350px">
<tr>
<td>
<center>
<asp:Button ID="addEntity" runat="server" Text="Add Entity" /><br />
<asp:Label ID="output" runat="server" Text=""></asp:Label>
<asp:SqlDataSource ID="usersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:connectionString %>"
SelectCommand="returnAllNonAdminUsers" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</center>
</td>
</tr>
</table>
</telerik:RadAjaxPanel>
<telerik:RadAjaxManager runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="businessNameDrop">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="entityNameInput" />
<telerik:AjaxUpdatedControl ControlID="streetInput" />
<telerik:AjaxUpdatedControl ControlID="cityInput" />
<telerik:AjaxUpdatedControl ControlID="stateInput" />
<telerik:AjaxUpdatedControl ControlID="zipInput" />
<telerik:AjaxUpdatedControl ControlID="latInput" />
<telerik:AjaxUpdatedControl ControlID="lonInput" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
</asp:Content>
This is in my vb code behind right now
Protected Sub RadComboBox1_TextChanged(ByVal sender As Object, ByVal e As EventArgs)
entityNameInput.Text = businessNameDrop.Text
End Sub
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/admin/Admin.Master"
CodeBehind="EditEntity.aspx.vb" Inherits="ClickableCommunity.EditEntity" %>
<%@ Register Assembly="RadMenu" Namespace="Telerik.WebControls" TagPrefix="radM" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<telerik:RadScriptBlock ID="ScriptBlock1" runat="server">
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAANvmC5YwARPSDAHoiTGyjXRR-496V5WiR7LkdzcFVQzFkDe07hhSkvWarTS8udi3TGEWMPQwT-FAGew"
type="text/javascript"></script>
<script type="text/javascript">
function getLatLon(sender, args) {
var street = $find('<%= streetInput.ClientID %>').get_value();
var city = $find('<%= cityInput.ClientID %>').get_value();
var state = $find('<%= stateInput.ClientID %>').get_value();
var zip = $find('<%= zipInput.ClientID %>').get_value();
var address = (street + ", " + city + " " + zip);
geocodeAddress(address);
} //getLatLon
//this function takes in an address and returns
//the lattitude and longitude.
function geocodeAddress(address) {
var coder = new GClientGeocoder();
coder.getLatLng(address,
function(point) {
//the id of the tool tip
var toolTip = $find("<%= cantFindLocation.ClientID %>");
if (!point) {
//show the tool tip if it is hidden
if (!toolTip.isVisible()) {
toolTip.show();
} //if
//the tool tip is showing and the clicked the link
else {
toolTip.set_text("Still no dice, <a href=\"#\" onclick=\"getLatLon()\">" +
"try again</a> or get them <a href=\"" +
"http://itouchmap.com/latlong.html\" target=\"_blank\"" +
">manually</a>.");
} //else
} //if
//we set the textboxes to their values
else {
var templat = $find('<%= latInput.ClientID %>');
var templon = $find('<%= lonInput.ClientID %>');
templat.set_value(point.lat());
templon.set_value(point.lng());
//hide the tooltip if its showing
if (toolTip.isVisible()) {
toolTip.hide();
}
} //else
} //function(point)
);
} //geocodeAddress
</script>
</telerik:RadScriptBlock>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px"
Width="300px" EnableHistory="True" HorizontalAlign="NotSet">
<table width="350px">
<tr>
<td>
<center>
<span class="adminTableLabel">Select Entity</span>
<telerik:RadComboBox ID="businessNameDrop" runat="server" Skin="Web20"
Width="150px" MarkFirstMatch="True"
DropDownWidth="150px" CssClass="stateDropDownText" Font-Size="16px"
DataSourceID="businessDataSource" DataTextField="name"
DataValueField="businessid" AutoPostBack="true"
OnClientSelectedIndexChanged="RadComboBox1_TextChanged">
<CollapseAnimation Duration="1000" Type="InOutBack" />
</telerik:RadComboBox>
<asp:SqlDataSource ID="businessDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:connectionString %>"
SelectCommand="getAllBusinesses" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td></td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">Entity Name</span>
<telerik:RadTextBox ID="entityNameInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="valTxtName" ControlToValidate="entityNameInput" ErrorMessage="Please enter a Business Name."
CssClass="errorMessage" runat="server" />
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td></td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">Street Address</span>
<telerik:RadTextBox ID="streetInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="addressValidator" ControlToValidate="streetInput"
ErrorMessage="Please enter an address." CssClass="errorMessage" runat="server" />
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td>
<center>
<span class="adminTableLabel">City</span>
<telerik:RadTextBox ID="cityInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="cityValidator" ControlToValidate="cityInput" ErrorMessage="Please enter a City."
CssClass="errorMessage" runat="server" />
</center>
</td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">State</span>
<telerik:RadComboBox ID="stateInput" runat="server" Skin="Web20" Width="150px" ChangeTextOnKeyBoardNavigation="true"
MarkFirstMatch="true" DropDownWidth="150px" CssClass="stateDropDownText" Font-Size="16px">
<CollapseAnimation Duration="1000" Type="InOutBack" />
<Items>
<telerik:RadComboBoxItem Text="Alabama" Value="AL" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Alaska" Value="AK" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Arizona" Value="AZ" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Arkansas" Value="AR" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="California" Value="CA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Colorado" Value="CO" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Connecticut" Value="CT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Delaware" Value="DE" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="District Of Columbia" Value="DC" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Florida" Value="FL" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Georgia" Value="GA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Hawaii" Value="HI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Idaho" Value="ID" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Illinois" Value="IL" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Indiana" Value="IN" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Iowa" Value="IA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Kansas" Value="KS" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Kentucky" Value="KY" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Louisiana" Value="LA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Maine" Value="ME" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Maryland" Value="MD" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Massachusetts" Value="MA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Michigan" Value="MI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Minnesota" Value="MN" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Mississippi" Value="MS" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Missouri" Value="MO" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Montana" Value="MT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Nebraska" Value="NE" CssClass="stateDropDownText"
Selected="true" />
<telerik:RadComboBoxItem Text="Nevada" Value="NV" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New Hampshire" Value="NH" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New Jersey" Value="NJ" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New Mexico" Value="NM" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="New York" Value="NY" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="North Carolina" Value="NC" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="North Dakota" Value="ND" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Ohio" Value="OH" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Oklahoma" Value="OK" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Oregon" Value="OR" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Pennsylvania" Value="PA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Rhode Island" Value="RI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="South Carolina" Value="SC" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="South Dakota" Value="SD" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Tennessee" Value="TN" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Texas" Value="TX" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Utah" Value="UT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Vermont" Value="VT" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Virginia" Value="VA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Washington" Value="WA" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="West Virginia" Value="WV" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Wisconsin" Value="WI" CssClass="stateDropDownText" />
<telerik:RadComboBoxItem Text="Wyoming" Value="WY" CssClass="stateDropDownText" />
</Items>
</telerik:RadComboBox>
<span class="errorMessage" style="visibility: hidden;">spacer text</span>
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td>
<center>
<span class="adminTableLabel">Zip</span>
<telerik:RadTextBox ID="zipInput" runat="server" Skin="Web20" Width="150px">
<ClientEvents OnFocus="getLatLon" />
</telerik:RadTextBox>
<asp:RegularExpressionValidator ID="reZipCode" ControlToValidate="zipInput" ValidationExpression="^\d{5}$|^\d{5}-\d{4}$"
ErrorMessage="Not a valid Zip code!" Display="static" runat="server" CssClass="errorMessage" />
<telerik:RadToolTip runat="server" ID="cantFindLocation" Skin="Web20" Height="100px"
Width="400px" ManualClose="true" Position="TopRight" RelativeTo="Element" TargetControlID="streetInput">
<span class="normalText">I can't find the address you specified. Please make sure that
it is typed in correctly. If you would like to manually find the latitude and longitude,
go to <a href="http://itouchmap.com/latlong.html" target="_blank">here</a> and get
the coordinates. <a href="#" onclick="getLatLon()">Look Again</a> </span>
</telerik:RadToolTip>
</center>
</td>
</tr>
<tr>
<td>
<center>
<span class="adminTableLabel">Latitude</span>
<telerik:RadTextBox ID="latInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="latValidator" ControlToValidate="latInput" ErrorMessage="Please enter a Latitude"
CssClass="errorMessage" runat="server" />
</center>
</td>
<td class="addBusinessSpacing">
</td>
<td>
<center>
<span class="adminTableLabel">Longitude</span>
<telerik:RadTextBox ID="lonInput" runat="server" Skin="Web20" Width="150px">
</telerik:RadTextBox>
<asp:RequiredFieldValidator ID="lonValidator" ControlToValidate="lonInput" ErrorMessage="Please enter a Business Name"
CssClass="errorMessage" runat="server" />
</center>
</td>
<td>
<a href="#" onclick="getLatLon()">
<asp:Image ID="refresh" runat="server" ImageUrl="~/images/refresh.png" Height="20px"
Width="20px" AlternateText="Check coordinates again." />
</a>
</td>
</tr>
</table>
<table width="350px">
<tr>
<td>
<center>
<asp:Button ID="addEntity" runat="server" Text="Add Entity" /><br />
<asp:Label ID="output" runat="server" Text=""></asp:Label>
<asp:SqlDataSource ID="usersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:connectionString %>"
SelectCommand="returnAllNonAdminUsers" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
</center>
</td>
</tr>
</table>
</telerik:RadAjaxPanel>
<telerik:RadAjaxManager runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="businessNameDrop">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="entityNameInput" />
<telerik:AjaxUpdatedControl ControlID="streetInput" />
<telerik:AjaxUpdatedControl ControlID="cityInput" />
<telerik:AjaxUpdatedControl ControlID="stateInput" />
<telerik:AjaxUpdatedControl ControlID="zipInput" />
<telerik:AjaxUpdatedControl ControlID="latInput" />
<telerik:AjaxUpdatedControl ControlID="lonInput" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
</asp:Content>
This is in my vb code behind right now
Protected Sub RadComboBox1_TextChanged(ByVal sender As Object, ByVal e As EventArgs)
entityNameInput.Text = businessNameDrop.Text
End Sub