I have an asp.net drop down list. There is a "new" option in it. Selecting that will show 2 labels,2 text boxes and an asp.net button. Entering values in the textboxes("John","Doe")and hitting the button should add a value to the Database table and also refresh this drop down and . It did that when I DID NOT use ajax. Now when i use ajax (radajaxmanager), it adds the value to the table and shows that it is selecting the newly added value in the codebehind, but the drop down selected value shows as "New". It should say for example "John Doe". I went for ajax because I have many drop downs in the page and postbacks were not optimal. Where did I go wrong?
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
In the codebehind I write a method BindCustomerContact() after I add "John Doe".
When I debugged it set the value of the drop down as the new value, but my UI shows "New". Any help would be appreciated.
<telerik:RadAjaxManager ID=
"ram"
runat=
"server"
><br> <AjaxSettings><br> <telerik:AjaxSetting AjaxControlID=
"ddlCustomerContact"
><br> <UpdatedControls><br> <telerik:AjaxUpdatedControl ControlID=
"divAddNewCustomerContact"
/><br> </UpdatedControls>
</AjaxSettings>
</telerik:RadAjaxManager>
In the codebehind I write a method BindCustomerContact() after I add "John Doe".
If
intNewCustomerID > 0
Then
<br> ddlCustomerContact.SelectedValue = intNewCustomerID<br>
Else
<br> ddlCustomerContact.SelectedIndex = 0<br>
End
If
<br>...
When I debugged it set the value of the drop down as the new value, but my UI shows "New". Any help would be appreciated.