How to refresh data on a dropdownlist

H

Hugo Flores

Hi,

I'm using an objectdatasource to populate a dropdownlist with names of
companies
The problem I have is that, when I click a button, I add the company
selected on the dropdown, to a grid, but I want to be able to refresh
the dropdown so that I don't have the company I just added in there.
How is it possible to refresh the objectdatasource, or how can I do
this, if possible?

Thanks
 
P

PeterKellner

Hi,

I'm using an objectdatasource to populate a dropdownlist with names of
companies
The problem I have is that, when I click a button, I add the company
selected on the dropdown, to a grid, but I want to be able to refresh
the dropdown so that I don't have the company I just added in there.
How is it possible to refresh the objectdatasource, or how can I do
this, if possible?

Thanks

dropdownlist1.DataBind()

will cause the default get method to be called.
Peter Kellner
http://peterkellner.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top