update panel
-
im trying to use the update panel but it updates the entire page as supposed to the update panel. i cant find what i have done wrong. can anyone help??? Many thanks in advance ==================================================================================== <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> Untitled Page
===========================code behind================ Protected Sub Button1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = "Refreshed at " & _ DateTime.Now.ToString() End Sub
-
im trying to use the update panel but it updates the entire page as supposed to the update panel. i cant find what i have done wrong. can anyone help??? Many thanks in advance ==================================================================================== <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> Untitled Page
===========================code behind================ Protected Sub Button1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = "Refreshed at " & _ DateTime.Now.ToString() End Sub
you can always try another method in using updatepanel. example :
aspajax:updatepanel id="upGetContract" updatemode="conditional" runat="server"
contenttemplate
/*bunch of controls*/
contenttemplate
triggers
aspajax:asyncpostbacktrigger controlid="btnSearch" eventname="Click"
triggers
aspajax:updatepanelhope it help nb : i dont know why if i give "<" or ">" the code will not be shown... but i believe u got what i mean