asp.net - change control outside UpdatePanel -


In short: I want to enable a button outside UpdatePanel when I click on a button Click UpdatePanel inside

Enables the Problem: But the tag i and ASP: localization is not visible in the code provided Click the button UpdatePanel updPnlOfferings

Description: I button inside a DataList UpdatePanel for each item List of which is included in the removal The Delete button is firing an event on the server that removes the record and disables one button (such as out of UpdatePanel.

As I have suggested that I have the UpdatePanel < / down >

  & lt; asp: UpdatePanel ID = "updPnlCourse" runat = "server" UpdateMode = "conditional" & gt; & lt; ContentTemplate & gt; & lt; asp: LinkButton ID = "lnkDeleteCourseDetails" runat = "server" onclick = "lnkDeleteCourseDetails_Click" & gt; & lt; i class = "icon-removal sign" & gt; & lt; / i & gt; & lt; asp: localization ID = "Localize6" runat = "server" lesson = "& LT;% $ Resources: CBLabels, LBL_DeleteDetails% & gt;" / & gt; & lt; / asp: LinkButton & gt; & lt; asp: ConfirmButtonExtender id = "lnkDeleteCourseDetails_ConfirmButtonExtender" runat = "server" ConfirmText = ' ? are you sure you want to delete this course enabled = "true" TargetControlID = "lnkDeleteCourseDetails" & gt; & lt; / ASP: ConfirmButtonExtender & gt; & lt; / ContentTemplate & gt; & lt; / asp: UpdatePanel & Gt;   

The main UpdatePanel is the Fi ring event below

  & lt; Asp: UpdatePanel id = "updPnl offer" runat = "server" UpdateMode = "conditional" & gt; & Lt; ContentTemplate & gt; & Lt; Asp: panel id = "pnlDSOfferings" runat = "server" & gt; & Lt; Asp: Data List ID = "dtlstOfferings" runat = "server" OnItemCommand = "dtlstOfferings_ItemCommand" Enable ViewState = "true" & gt; & Lt; / ASP: DataList & gt; & Lt; / ASP: Cell & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt;   

The dtlstOfferings_ItemCommand event I coded this

  lnkDeleteCourseDetails.Enabled = true; LnkDeleteCourseDetails.ToolTip = ""; LnkDeleteCourseDetails_ConfirmButtonExtender.Enabled = true; UpdPnlCourse.Update ();  

This is a known problem as specified in this. The solution is to put all of your content inside a place holder, or all controls as server control, inside the link button.

  & lt; Asp: LinkButton id = "LnkDeleteCourseDetails" runat = "server" OnClick = "lnkDeleteCourseDetails_Click" & gt; & Lt; ASP: Place Holder Runat = "Servers" & gt; & Lt; I class = "icon-remove-sign" & gt; & Lt; / I & gt; & Lt; ASP: Localization ID = "Localization 6" Runat = "Server" text = "& lt;%% Resources: CBLABLELES, LBL Dialed Description% & gt;" / & Gt; & Lt; / ASP: Placeholder & gt; & Lt; / ASP: LinkButton & gt;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -