Solved

Why does update panel not working.

Posted on 2014-02-05
3
174 Views
Last Modified: 2014-02-24
The page is getting post backed. What is wrong here.

 <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="upBlock" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table width="805" border="0" cellspacing="3" class="main_table_report">
                        <tr>
                            <td class="report_color td_style">
                                University
                            </td>
                            <td class="report_color td_style">
                                <asp:DropDownList ID="ddluniversity" runat="server" CssClass="report_color" Width="200"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddluniversity_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td class="report_color td_style">
                                Course/Branch
                            </td>
                            <td class="report_color td_style">
                                <asp:DropDownList ID="ddlcourses" runat="server" CssClass="report_color" Width="200"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddlcourses_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="report_color td_style">
                                Semester
                            </td>
                            <td class="report_color td_style">
                                <asp:DropDownList ID="ddlsemester" runat="server" CssClass="report_color" Width="200"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddlsemester_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td class="report_color td_style">
                                Section
                            </td>
                            <td class="report_color td_style">
                                <asp:DropDownList ID="ddlsection" runat="server" CssClass="report_color" Width="200"
                                    AutoPostBack="True" OnSelectedIndexChanged="ddlsection_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="report_color td_style">
                                Subject
                            </td>
                        
                        </tr>
                        <tr>
                            <td class="report_color td_style" colspan="2">
                                Student's Name (Optional)
                            </td>
                            <td class="report_color td_style" colspan="2">
                                <asp:TextBox ID="txtname" runat="server" Width="200px" CssClass="txt_1"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ddluniversity" EventName="SelectedIndexChanged"/>
                </Triggers>
            </asp:UpdatePanel>

Open in new window

0
Comment
Question by:searchsanjaysharma
[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
3 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 250 total points
ID: 39840439
Please explain how you want the page to update when the updatepanel trigger is triggered, what fields should update etc.
The first thing that is apparent is that you have all of the content within the updatepanel so all of the content will be updated as everything within the updatepanel gets updated when the trigger is executed.
You also have the AutoPostBack attribute of your dropdown listboxes set to true which will also be causing the full postback you are seeing.
You should set AutoPostBack = false for you dropdown list boxes.
0
 
LVL 10

Assisted Solution

by:Monica P
Monica P earned 250 total points
ID: 39852855
Check you have placed this code in you web config file

<xhtmlConformance mode="Legacy"/>
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 39882304
tx
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 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