Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 118877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:33:51+00:00 2026-05-11T03:33:51+00:00

I have an updatepanel which doesn’t work. My whole code: <%@ Page Language=C# MasterPageFile=~/Master.Master

  • 0

I have an updatepanel which doesn’t work. My whole code:

<%@ Page Language='C#' MasterPageFile='~/Master.Master' AutoEventWireup='true' CodeBehind='AlgemeenDocument.aspx.cs' Inherits='PCK_Web_new.WebForm7' Title='Untitled Page' %> 

<asp:ScriptManager ID='ScriptManager1' runat='server' />  <script language='javascript' type='text/javascript'>      function showOverlay(panel)     {         var pageHeight;          // Get viewport height         if (typeof window.innerWidth != 'undefined')             // Get viewport height - FF             vpHeight = window.innerHeight;         else             // Get viewport height - IE             vpHeight = document.documentElement.clientHeight;          // Get site height (div)          var treeview = document.getElementById('Treeview');         var siteHeight = 0;          if(treeview != null)         {             siteHeight = document.getElementById('Treeview').offsetHeight;         }         siteHeight += document.getElementById('HeaderContainer').offsetHeight;         siteHeight += document.getElementById('divMainMenu').offsetHeight;            // Compare heights and set the overlay height         if(vpHeight < siteHeight)             pageHeight = siteHeight + 'px';         else             pageHeight = vpHeight + 'px';           var div = document.getElementById(panel);          div.className = 'DocOverlayShow';         div.style.height = pageHeight;          document.getElementById('<%= pnlAddComment.ClientID %>').className='DocAddCommentBox';     }      function hideOverlay()     {         //document.getElementById(commentID).style.visibility = 'hidden';         //document.getElementById(titelID).style.visibility = 'hidden';          var inputs = new Array();         inputs = document.getElementsByTagName('input');           for ( i = 0; i < inputs.length; i++ )         {              if ( inputs[i].type == 'text' )             {                 inputs[i].value = '';             }         }               document.getElementById('<%= txtTitel.ClientID %>').value = '';         document.getElementById('<%= txtComment.ClientID %>').value = '';          document.getElementById('<%= pnlOverlay.ClientID %>').className = 'DocOverlayHide';     }  </script>       <asp:Panel ID='pnlOverlay' runat='server' CssClass='DocOverlayHide'>          <!-- <div id='DocAddCommentBox'> -->         <asp:Panel ID='pnlAddComment' runat='server' CssClass='DocAddCommentBox'>              <div id='DocACTitleBox'>                 Opmerking plaatsen             </div>              <div id='DocACContentBox'>                 <div class='DocACLabel'>                     Titel:                 </div>                 <div class='DocACInput'>                     <asp:TextBox ID='txtTitel' runat='server'></asp:TextBox>                 </div>                 <div class='ClearFloat'>                    </div>                 <div class='DocACLabel'>                     Opmerking:                 </div>                 <div class='DocACInput'>                     <asp:TextBox ID='txtComment' runat='server' TextMode='MultiLine' Rows='15'                          Columns='40'>                     </asp:TextBox>                 </div>                 <div class='ClearFloat'>                    </div>                 <div id='DocBtnBox'>                     <input id='btnCancel' type='button' onclick='hideOverlay()' value='Annuleren'/>                       <asp:UpdatePanel ID='UpdatePanel2' runat='server' EnableViewState='False' UpdateMode='Always' RenderMode='Block'>                     <ContentTemplate>                         <asp:Button ID='btnSave' runat='server' CssClass='btnSave' onclick='btnSave_Click' Text='Opslaan' />                         <asp:Label ID='lblTitleError' runat='server' Text='ertroro'></asp:Label>                     </ContentTemplate>                     </asp:UpdatePanel>                   </div>                 <div class='ClearFloat'>&nbsp;</div>             </div>          </asp:Panel>         <!-- </div> -->           <asp:Panel ID='pnlResult' runat='server' CssClass='DocOverlayHide'>              <div id='DocResultBox'>                 <div id='Div1'>                     Opmerking plaatsen                 </div>                  <div id='Div2'>                     <div class='DocACLabel'>                         <asp:Label ID='lblResult' runat='server' Text='Label'></asp:Label>                     </div>                      <div id='Div1'>                         <input id='btnClose' type='button' onclick='hideOverlay()' value='Sluiten'/>                      </div>                     <div class='ClearFloat'>&nbsp;</div>                 </div>             </div>          </asp:Panel>  </asp:Panel>    <div class='DocContainer'>      <div class='DocTitleBox'>          <div class='DocLogo'>             Het logo         </div>          <div class='DocTitle'>             <asp:Label ID='lblTitle' runat='server'></asp:Label>         </div>          <div class='DocType'>             Document soort             <asp:Label ID='lblDocType' runat='server'></asp:Label>             </div>          <div class='DocBtn'>             <input type='button' value='Opmerking' onclick='showOverlay('<%=pnlOverlay.ClientID %>')' />         </div>     </div>      <div class='DocContentBox'>          <asp:Label ID='lblID' runat='server'></asp:Label>          <p>Algemeen Document Geen vaste opmaak.</p>      </div>  </div> 

I have tried triggers, but they didn’t work..

When i press btnSave this is the code that’s executed:

    protected void btnSave_Click(object sender, EventArgs e)     {          lblTitleError.Text = 'BUTTON PRESSED';      } 

When i set a breakpoint, it runs the code. But the label text isn’t set :S

Hope someone can help?

Thnx!

EDIT:

I also tried this:

<div id='DocBtnBox'>                     <input id='btnCancel' type='button' onclick='hideOverlay()' value='Annuleren'/>                      <asp:Button ID='btnSave' runat='server' CssClass='btnSave' onclick='btnSave_Click' Text='Opslaan' />                      <asp:UpdatePanel ID='UpdatePanel2' runat='server' EnableViewState='False' UpdateMode='Always'>                     <ContentTemplate>                         <asp:Label ID='lblTitleError' runat='server' Text='ertroro'></asp:Label>                     </ContentTemplate>                         <Triggers>                             <asp:AsyncPostBackTrigger ControlID='btnSave' EventName='Click' />                         </Triggers>                     </asp:UpdatePanel>                  </div> 
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:33:51+00:00Added an answer on May 11, 2026 at 3:33 am

    I think the best tutor on the web is Joe Stagner. His material for .NET is awesome.

    Here is a link where he shows you exactly, step-by-step how to do what you are trying.

    Addendum:

    If I were you I’d create a clean page from the sample code Joe has provided. Go to http://www.asp.net/LEARN/ajax-videos/ and figure out which tutorial you want to base your solution on. After you get the tutorial working on a sample page, I’d slowly, piece-by-piece add in the logic you need for your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 297k
  • Answers 297k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Really difficult to understand what is being asked here. If… May 13, 2026 at 7:13 pm
  • Editorial Team
    Editorial Team added an answer (setf (slot-value widget 'value) "foo") Something like the above. You… May 13, 2026 at 7:13 pm
  • Editorial Team
    Editorial Team added an answer RTF is old, older than Job and considerably predates Unicode.… May 13, 2026 at 7:13 pm

Related Questions

I have an updatepanel which doesn't work. My whole code: <%@ Page Language=C# MasterPageFile=~/Master.Master
I have an UpdatePanel containing a GridView which contains a button in the HeaderTemplate
I have an updatepanel with a load of checkboxes in, and outside of the
I have an update panel and a list of buttons that trigger it. I
I have an gridview that I am adding onclick events to a checkbox column

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.