Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/02/2008, 05:44
Avatar de mdavila
mdavila
 
Fecha de Ingreso: julio-2007
Ubicación: Montevideo (Uruguay)
Mensajes: 919
Antigüedad: 16 años, 10 meses
Puntos: 13
Re: Problema simple Ajax-UpdatePanel C#

Elimina esta parte del codigo o verificala y te va a funcionar ok.
Esta en negrita lo que tenes que borrar.

el siguiente código HTML

Código: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server" onclick="return form1_onclick()">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:DropDownList OnSelectedIndexChanged="SelectedIndexChanged" ID="cmbCombo" runat="server" AutoPostBack="true">
<asp:ListItem Value="0" Text="-- seleccionar opcion --" />
<asp:ListItem Value="1" Text="Opcion 1" />
</asp:DropDownList>
<br />
<br />
<div>
<asp:UpdatePanel runat="server" ID="pnUpdate" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="cmbCombo" EventName="SelectedIndexChanged" />
</Triggers>
<ContentTemplate>
<asp:GridView ID="gvGridView" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>