Advertisement

07.16.2008 at 06:18AM PDT, ID: 23569478
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Partial page updates with asp:Content controls

Asked by G0ggy in Asynchronous Javascript and XML (AJAX), Programming for ASP.NET, .NET Framework 3.x versions

Tags:

Hi all,

Is it possible to do a partial page update with the asp:UpdatePanel in one asp:Content control and the asp:UpdateProgress in another asp:Content control?

My reason for this is I have a 2 column web page (columns controlled by the master page), the centre column has a list of log entries in a GridView with a Select Command button. When the user clicks the Select Command button the chosen rows details are gathered from the database and show in a DetailsView in the right hand column. Obviously in the RowCommand sequence the whole page posts back to get the row details.

I have tried placing a asp:UpdatePanel around the GridView and an UpdateProgress in the right hand column, but the AssociatedUpdatePanelID of the asp:UpdatePanel says it cannot see the asp:UPdatePanel in the other asp:Content control. I've posted the code in case I've waffled too much and this is confusing.

TIA.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
<asp:Content ID="Content1" ContentPlaceHolderID="cphNew2ColMain" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
 
    <div class="pagetitle">
        <asp:Image ID="imgAppLog" ImageUrl="~/App_Themes/jcb-v3/images/pageicons/event-log.gif" ImageAlign="AbsMiddle" runat="server" />&nbsp;
        <asp:Label ID="lblDetailsEntryTitle" Text="Master Event Log" CssClass="pagetitle" runat="server"></asp:Label>
    </div>
 
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:GridView ID="gvAppLog" DataKeyNames="id" AllowPaging="true" PageSize="15" PagerSettings-Mode="NumericFirstLast"
                 DataSourceID="sdsLogEntries" Width="100%" AutoGenerateColumns="False" runat="server">
                 <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="id" HeaderText="#" />
                    <asp:BoundField DataField="dtStamp" HeaderText="Date &amp; Time" />
                    <asp:BoundField DataField="dim1" HeaderText="Event" />        
                 </Columns>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:SqlDataSource ID="sdsLogEntries" SelectCommand="sp_getLogEntries" SelectCommandType="StoredProcedure"
         ConnectionString="<%$ ConnectionStrings:dev %>" runat="server"></asp:SqlDataSource>
</asp:Content>
 
<asp:Content ID="ContentRight" ContentPlaceHolderID="cphNew2ColRight" runat="server">
    <div class="rightsubtitlebar">
        <asp:Label ID="lblDetailsEntryIntro" Text="Selected log entry details will appear here:" SkinID="subtitle" runat="server"></asp:Label>
    </div>
 
    <asp:DetailsView ID="dtvLogEntry" DataKeyNames="id" Width="100%"
        AutoGenerateRows="False" runat="server">
        <Fields>
            <asp:BoundField DataField="id" HeaderText="Event ID" />
            <asp:BoundField DataField="dtStamp" HeaderText="Date &amp; Time Stamp" />
            <asp:BoundField DataField="dim1" HeaderText="Event" />
            <asp:boundfield datafield="dim2" HeaderText="Data 2" />
            <asp:BoundField DataField="dim3" HeaderText="Data 3" />
            <asp:BoundField DataField="dim4" HeaderText="Data 4" />
            <asp:BoundField DataField="dim5" HeaderText="Data 5" />
            <asp:BoundField DataField="dim6" HeaderText="Data 6" />
            <asp:BoundField DataField="dim7" HeaderText="Data 7" />
        </Fields>
    </asp:DetailsView>
    
    <br class="clear" />
    
    <asp:UpdateProgress ID="udpLogEntry" AssociatedUpdatePanelID="UpdatePanel2" runat="server">
        <ProgressTemplate>
            <asp:Image ID="imgProgress" ImageUrl="~/App_Themes/jcb-v3/images/ajaxloading/square-circle.gif" ImageAlign="AbsMiddle" runat="server" />&nbsp;
            <asp:Label ID="lblProgress" Text="Please wait..." SkinID="information" runat="server"></asp:Label>
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
[+][-]07.16.2008 at 06:36AM PDT, ID: 22015743

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.16.2008 at 06:54AM PDT, ID: 22015917

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 06:56AM PDT, ID: 22015933

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 07:06AM PDT, ID: 22016019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 07:10AM PDT, ID: 22016069

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Asynchronous Javascript and XML (AJAX), Programming for ASP.NET, .NET Framework 3.x versions
Tags: ASP.NET, .NET, AJAX
Sign Up Now!
Solution Provided By: G0ggy
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628