Réponse acceptée !
Voici la solution :
Voici mon code :
Dans mon fichier aspx :
(…)
Code ASP.NET :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
void Page_Init(object sender, EventArgs e)
{
SetFocus(Output);
SetFocus(cmbPaysG);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
(…)
Outpot c’est mon id de Panel
Code ASP.NET :
<asp:Panel id="Output" Visible="False" runat="server">
CmbPaysG c’est l’id de mon menu déroulant
Code ASP.NET :
<asp:DropDownList ID="cmbPaysG" runat="server" AutoPostBack="True" onselectedindexchanged="cmbPaysG_SelectedIndexChanged" >
Pour plus d’info voir le lien
http://msdn.microsoft.com/en-us/library/e04ah0f4.aspx
javascript:void(0);