Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

comportamiento extraño del updatePanel

7 views
Skip to first unread message

Patricio Muñoz

unread,
Nov 7, 2015, 5:47:27 AM11/7/15
to
Trabajo hace un par de meses con VS2005 con C#.

Estoy aprendiendo a usar el updatePanel pero por alguna extraña razón me carga toda la pagina como si ignorara el objeto updatePanel.

El código es bastante básico pero no me funciona. Tampoco marca error. Se los pego a continuación.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="prueba.aspx.cs" Inherits="prueba" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ejemplo UpdatePanel</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Inherit" AsyncPostBackErrorMessage="gfgfgfg"></asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
Hora en Servidor: <asp:Label ID="lblHoraServidor" runat="server">
</asp:Label> <br />
<asp:Button ID="btnActualizarHora" Text="Actualizar Hora"
OnClick="btnActualizarHora_Click" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>

Espero que alguien me pueda orientar en este problema.

Bendiciones
0 new messages