?
Solved

Ajax UpdatePanel Functionality

Posted on 2007-11-19
4
Medium Priority
?
400 Views
Last Modified: 2012-06-27
Hi experts,

within a web based application i have a dropdownlist. Whenever an index there is selected and an ok-button is pressed, the page-content below is supposed to change. I thought - ok, thats a good a example to try ajax in my web app. So I used the scriptmanager and embedded my user control in my aspx page in the updatepanel, contenttemplate etc.:

// simplified code
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  <asp:UpdatePanel ID="UpdateReportPanel" runat="server">
  <Triggers>
      // thats the controlID of the ok button
      <asp:AsyncPostBackTrigger ControlID="ViewReport"/>
  </Triggers>
  <contenttemplate>
    // my user control
    <ti:ProjectStatus id="ctlPStatus" visible="false" runat="server"/>
  </contenttemplate>
</asp:UpdatePanel >

So in the codebehind when a specific entry in the dropdownlist is selected I change the visibility of the usercontrol "ti:projectstatus" to true. I thought thats all I have to do to get the partial page rendering. But still the whole page reloads. What else do I have to do?

 
0
Comment
Question by:arthrex
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:ventaur
ID: 20313079
Where is the button, "ViewReport", in relation to your UpdatePanel and user control?
0
 

Author Comment

by:arthrex
ID: 20313123
Its above the scriptmanager tag
0
 

Author Comment

by:arthrex
ID: 20313190
maybe, do i have to reference the updatepanel id somwhere?
0
 
LVL 6

Accepted Solution

by:
ventaur earned 1600 total points
ID: 20313201
Change your UpdatePanel declaration as follows:
<asp:UpdatePanel ID="UpdateReportPanel" runat="server" UpdateMode="Conditional">
...

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

While opting for any web-to-print solution, you need to discuss with your team and some of your end users and know their opinions about your decisions. In this article we list down some questions you need to ask yourself.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

807 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