Solved

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

Posted on 2010-08-25
4
2,142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

630 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