Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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