Solved

Why does update panel not working.

Posted on 2014-02-05
3
168 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
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now