Solved

Ajax UpdatePanel Functionality

Posted on 2007-11-19
4
392 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 400 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

726 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