I have a formview that has a dropdownlist bound to a table to populate
a list of people. While in edit mode, if a person is not in that
list, there is a button that pops up an add requester page and the new
name is added to the table. However, when the popup closes, the
parent page appears to refresh but the new name is not immediately in
the dropdownlist. I have to get out of edit or go to another page and
come back to see it. I tried formview.databind but the problem is
that there are so many other fields in that formview and anything that
was typed before adding a requester is lost on the rebind. Does
anyone know a simple way to rebind this dropdownlist? Since it's in a
formview I can not simply say DropDownListRequester.DataBind() where I
need it. Can I use the control's ID maybe? I know I can save all of
the forms fields in variables and repopulate after the databind but
that seems like too much trouble to what should be a simple solution.
Any ideas?