Solved

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

Posted on 2010-08-25
4
2,054 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ajax and PHP 9 53
Visual Studio npm 1 29
How to get a Powershell script to launch from Visual Studio 20 63
How to force output to ascii 2 29
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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 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