Click to See Complete Forum and Search --> : asp.net 1.1 dropdown list problem


nanu yaru
08-19-2008, 08:20 AM
I am using asp.net 2003

In a web page I have a dropdown list and a GO button which will take to the next screen depending on the item selected

On page load I want a dropdown list to be populated and for this the function is

Gettrainingrequests();

Now my Page_ Load looks like

if (!this.IsPostBack)
{
Gettrainingrequests();
binddata();
}
else
{

binddata();
}

1) If I omit the else part in the if statement I am getting empty dropdown list (dorp down list not populated)

2) If I retain the else part in if statement the first element will always be triggered whenever I click GO button (the selected value is not triggered)

Please suggest me the solution for this.

Thanks in Advance