?
Solved

Ajax UpdatePanel Functionality

Posted on 2007-11-19
4
Medium Priority
?
395 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
[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
  • 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Introduction ( All good things must come to an end ) The original MySQL API has gone away.  It was deprecated (years ago) by PHP in Version 5.5, and removed from PHP in all current releases .  As a result, the issue is upon us today.  It's time to …
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
This video teaches users how to migrate an existing Wordpress website to a new domain.

777 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