.net - Implementing INamingContainer Interface for UpdatePanel? -
Even in an attempt to find the answer to this problem, I have not received any clarification (not specifically discussing a GridWise How do I get the following error when I run a program with UpdatePanel?
Message: Control with ID be registered through 'lblDisplay' Applying RegisterAsyncPostBackControl or RegisterPostBackControl to INInContainer, IPostBackDataHandler, or IPostBackEventHandler Should rana.
UpdatePanel is:
& lt; Form id = "form1" runat = "server" & gt; & Lt; Asp: ScriptManager id = "ScriptManager1" runat = "server" EnablePageMethods = "true" & gt; & Lt; / Asp: ScriptManager & gt; & Lt; Asp: UpdatePanel id = "up1" UpdateMode = "Conditional" runat = "server" & gt; & Lt; Trigger & gt; & Lt; Asp: asyncPostBackTrigger ControlID = "lblDisplay" eventname = "load" /> & Lt; / Trigger & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Heldfield ID = "hidden zone" run = "server" /> & Lt; Asp: HiddenField ID = "hiddenZone2" runat = "server" /> & Lt; Div style = 'width: 150px; Status: Absolute; Margin-left: 0; Text-line: center; '& Gt; & Lt; Span id = "clock" style = 'font-size: 125%;' & Gt; & Lt; / Span & gt; & Lt; Asp: label id = "lblDisplay" runat = "server" text = "" & gt; & Lt; / Asp: label & gt; & Lt; / Div & gt; & Lt; Div style = 'width: 150px; Status: Absolute; Margin-left: 150px; Text-line: center; Text-conversion: capitalization; ' & Gt; & Lt; Asp: label id = "lblDisplay2" runat = "server" text = "" interval = "5000" ontick = "tick" & gt; & Lt; / Asp: label & gt; & Lt; / Div & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; & Lt; / Form & gt;
In my opinion, I have to implement the INInContainer interface for lblDisplay, but it's not sure how to complete it. Do I know the update panel information? Create a new object for ININGContainer?
The problem is that a postback does not fire the event - it is not interactive. To be registered as some postbacktriggers, it should burn the postback command in some way - usually in response to some user input - which can prevent UpdatePanel then or form of trigger Should have registered controls in which prevents incidents of fire - e.g. An INCContainer (for example).
Comments
Post a Comment