i add the data from database to my dropdownlist,when everytime i refresh the page the same items added repetedly
like mango
graphes
orange
mango
graphes
orange
if i set property append data bound-false some things are not work properly
how could i avoid that issue?
Loading
Posted May 25, 2011, 1:52 PM
So in the Page_Load event
protected void page_Load(object sender,EventArgs e)
{
if (!IsPostBack)
{
//Load your dataset or datatable here.
//Bind the DropDownList here.
}
}
Hope this helps you.
Suthish NairPosted May 25, 2011, 1:13 PM
On Page_Load
Felipe RamosPosted May 25, 2011, 1:04 PM
In your page load you will need to add
if (!Page.IsPostBack)
{
// Add it here
}