Showing posts with label placed. Show all posts
Showing posts with label placed. Show all posts

Monday, March 26, 2012

DetailView and UpdatePanel

Hi,

I'm having an error trying to put a GridView visible from a Ok button placed in a DetailView control template and an updatepanel. It says that I can not add an invalid control Id to the trigger.

Can somebody help me on that?

Idea

hello-

how are you getting the id of the button? i think that you might not be getting a reference to the button...


Of course it is, the problem is that the control is inside a grid view template, so I want to see how I can reference that control in a way that the updatepanel can see it.

Here is my code

<atlas:UpdatePanelID="UpdateGridUsers"runat="server">

<triggers><atlas:controleventtriggercontrolid="ButtonCancel"eventname="ItemCommand"/></triggers>

I have the code placed for the trigger. The button name is Button cancel, but it is inside of a template in the DetailView like this

<InsertItemTemplate><asp:ButtonID="ButtonInsert"runat="server"CausesValidation="True"CommandName="Insert"Text="Insert"/> <asp:ButtonID="ButtonCancel"runat="server"CausesValidation="False"CommandName="Cancel"Text="Cancel"/></InsertItemTemplate>