We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

asp.net ajax update panel

Webboy2008
Webboy2008 asked
on
Medium Priority
566 Views
Last Modified: 2012-05-11
I tried to put ajax update panel after the script manager and it failed me.
Can you tell exactly where I should put the Update Panel?

Thanks
<%@ Page Title="Step 1" Language="C#"  MasterPageFile="~/MasterPages/PrivateMasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Secure_Quote_Commercial_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register TagPrefix="obout" Namespace="Obout.ComboBox" Assembly="obout_ComboBox" %>
<%@ Register src="../../../UserControls/Principals.ascx" tagname="Principals" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<table   cellpadding="0" cellspacing="0"> 
<tr valign="top"><td> 
   
<cc1:Accordion  
            runat="server"    
            ID="Accordion1"   
            HeaderCSSClass="AjaxCommQuoteHeaderCSS"               
            HeaderSelectedCssClass="AjaxCommQuoteHeaderSelectedCSS"              
            ContentCssClass="AjaxCommQuoteContentCss" 
            Width="700" 
            TransitionDuration="250"
            FramesPerSecond="200"
            AutoSize="Fill" 
>
     <Panes>
     <cc1:AccordionPane runat="server" ID="step1">
                        <Header>Step 1 - State / Bond / Cover Amount</Header>
                        <Content>
                        <table> 
                        <tr>
                        <td>Select State:</td> 
                        <td><obout:ComboBox runat="server" ID="DdlState" Width="275" Height="250"
                             DataSourceID="sds1" DataTextField="StateName" DataValueField="StateId"
                             EmptyText="" AutoPostBack="true"
                             OnSelectedIndexChanged="DdlState_OnSelectedIndexChanged"
                               />
                        </td>
                        </tr>
                        <tr><td>Select bond:</td>
                        <td>
                        <obout:ComboBox runat="server" ID="DdlProductId" Width="275" Enabled="false"
                            DataSourceID="sds2" DataTextField="SaaSubCodeDescription" DataValueField="OnlineProductId"
                            EmptyText="" AutoPostBack="true"
                            OnSelectedIndexChanged="DdlProductId_OnSelectedIndexChanged" />
                        </td></tr>
                        <tr><td>
                            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                            <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                        </td></tr>
                        </table>
                        </Content>
                    </cc1:AccordionPane>
                    <cc1:AccordionPane runat="server" ID="Step2">
                        <Header>Step 2 - Principal / Indemnitor</Header>
                        <Content>
                         <uc1:Principals ID="Principals1" runat="server" />
                        </Content>
                    </cc1:AccordionPane>
                    <cc1:AccordionPane runat="server" ID="Step3">
                        <Header>Step 3 - Additional Information</Header>
                        <Content>
                            <asp:PlaceHolder ID="PHadditionalInformation" runat="server"></asp:PlaceHolder>
                        </Content>
                    </cc1:AccordionPane>
                    <cc1:AccordionPane runat="server" ID="Step4">
                        <Header>Step 4 - Preview</Header>
                        <Content>
                        Show All Information
                        </Content>
                    </cc1:AccordionPane>
     </Panes>
     </cc1:Accordion>
    
     </td>
     <td class="AjaxCommQuoteSideNoteCSS">Note</td>
     </tr>
     </table>
    <asp:SqlDataSource ID="sds1" runat="server" 
        SelectCommand="SELECT * FROM States ORDER BY StateName asc"
		ConnectionString="<%$ ConnectionStrings:SuretyConnectionString %>">
     </asp:SqlDataSource>
    <asp:SqlDataSource ID="sds2" runat="server" 
    SelectCommand="SELECT dbo.BondTypes.BondTypeId, dbo.BondTypes.SaaSubCodeDescription,OnlineProducts.OnlineProductId
                   FROM dbo.OnlineProducts INNER JOIN
                   dbo.States ON dbo.OnlineProducts.StateId = dbo.States.StateId INNER JOIN
                   dbo.BondTypes ON dbo.OnlineProducts.BondTypeId = dbo.BondTypes.BondTypeId
                   WHERE     (dbo.States.StateId = @StateId) AND (dbo.OnlineProducts.StatusId = 1)
                   ORDER BY dbo.BondTypes.SaaSubCodeDescription"
		ConnectionString="<%$ ConnectionStrings:SuretyConnectionString %>">
	    <SelectParameters>
	        <asp:Parameter Name="StateId" Type="Int16" />
	    </SelectParameters>	    
    </asp:SqlDataSource>

 </asp:Content>

Open in new window

Comment
Watch Question

Obadiah ChristopherDeveloper User Interface
CERTIFIED EXPERT

Commented:
what's the error that u r getting?
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.