Please bind your dropdown in !ispostback
protected void Page_Load(object sender, EventArgs e)
{
if(!ispostback)
{
string queryMatchDetail = "select MatchId,MatchName from ADMMasterMatch order by MatchDate";
ddlMatchName.DataSource = clsNewSqlFunctions.GetSelectedData(queryMatchDetail);
ddlMatchName.DataTextField = "MatchName";
ddlMatchName.DataValueField = "MatchId";
ddlMatchName.DataBind();
string queryTeamDetail = "SELECT [TeamId],[TeamName] FROM [AdmCurrentEventMasterTeam] order by TeamName";
ddlWinningTeam.DataSource = clsNewSqlFunctions.GetSelectedData(queryTeamDetail);
ddlWinningTeam.DataTextField = "TeamName";
//ddlWinningTeam.DataValueField = "TeamId";
ddlWinningTeam.DataBind();
}
}
When you click a button page again postbacks and which will result in binding the dropdown again..So you will get the selected value as the first index of the dropdown..