<script language="javascript" type="text/javascript">
var txtText0 = "#" + '<%= new DynamicControl(this, "Text0").ClientID%>';//vendor#
var txtText1 = "#" + '<%= new DynamicControl(this, "Text1").ClientID%>';//vendor name
var dplVendor = "#" + '<%= new DynamicControl(this, "FUVendor").ClientID%>'; $(function () { $(dplVendor).change(function () {
$(txtText0).val($(dplVendor).val());
$(txtText1).val($(dplVendor).find("option:selected").text());
}); }); </script>