Solved

Getting a "postbacktrigger is not a known element" ASP.NET waring

Posted on 2010-08-25
4
1,932 Views
Last Modified: 2013-11-07
I get a "postbacktrigger is not a known element" warning within the following AJAX update panel.  Any ideas on what I'm missing?

                    <asp:UpdatePanel id="uPnlC_Step42_UploadRules" runat="server">
                    <contenttemplate>
                        <asp:Button ID="btn_Step42_UploadRules" runat="server" BackColor="#4066B3" BorderColor="White"
                            BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" ForeColor="White" Height="25px"
                            Text="Upload" Width="175px" OnClick="btn_Step42_UploadRules_Click" />
                        <triggers>
                            <asp:PostBackTrigger ControlID="btn_Step42_UploadRules" />                
                        </triggers>

                    </contenttemplate>
                    </asp:UpdatePanel>

Open in new window

0
Comment
Question by:Carleton_H
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
darkyin87 earned 500 total points
ID: 33523385
Try putting the triggers tag outside content template            

<asp:UpdatePanel id="uPnlC_Step42_UploadRules" runat="server">
                    <contenttemplate>
                        <asp:Button ID="btn_Step42_UploadRules" runat="server" BackColor="#4066B3" BorderColor="White"
                            BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" ForeColor="White" Height="25px"
                            Text="Upload" Width="175px" OnClick="btn_Step42_UploadRules_Click" />
                       
                    </contenttemplate>
                    <triggers>
                            <asp:PostBackTrigger ControlID="btn_Step42_UploadRules" />                
                        </triggers>
                    </asp:UpdatePanel>
0
 

Author Comment

by:Carleton_H
ID: 33523422
Worked like a charm.  Thanks darkyin87.
0
 
LVL 8

Expert Comment

by:SylvainDrapeau
ID: 33523472
Hello !

Try the code below.

Syldra
<asp:UpdatePanel id="uPnlC_Step42_UploadRules" runat="server">

    <contenttemplate>

        <asp:Button ID="btn_Step42_UploadRules" runat="server" BackColor="#4066B3" BorderColor="White" BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" ForeColor="White" Height="25px" Text="Upload" Width="175px" OnClick="btn_Step42_UploadRules_Click" />

    </contenttemplate>

    <triggers>

        <asp:PostBackTrigger ControlID="btn_Step42_UploadRules" />                

    </triggers>

</asp:UpdatePanel>

Open in new window

0
 
LVL 8

Expert Comment

by:SylvainDrapeau
ID: 33523486
Oops !

Bad timing...

Syldra
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Duplicate a row 2 33
.net VBA word safemode 1 25
getting id from database 5 24
Rolling back a sequence of stored procedures 12 29
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now