Link to home
Start Free TrialLog in
Avatar of banana_split
banana_split

asked on

Error Rendering Control - UpdateProgress

Hi i am facing a problem. I created a usercontrol and when i drag it onto my .aspx page, at the design mode of the.aspx page, it shows an Error Rendering Control - UpdateProgress. I have taken a screenshot of the error here:
http://img154.imageshack.us/my.php?image=pic1me4.jpg(Error) 

[My codes on the .aspx page]

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<%@ Register Src="UserControls/UserInfo/CreateUser.ascx" TagName="CreateUser" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <uc1:CreateUser ID="CreateUser1" runat="server" />
</asp:Content>

[/My codes on the .aspx page]


However the usercontrol itself at design mode, does not give off any error.
I have taken a screenshot of the error here:
http://img155.imageshack.us/my.php?image=pic2cm5.jpg

[My codes on the .ascx page]

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CreateUser.ascx.cs" Inherits="UserControls_CreateUser" %>
<%@ Register Src="../Status.ascx" TagName="Status" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxControlToolkit" %>

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <div class="progress">
                <asp:Image ID="imadUpdateProgress" runat="server" ImageUrl="~/images/indicator.gif" />
                Setting Up User Account...
            </div>
        </ProgressTemplate>
</asp:UpdateProgress><br />  

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:Panel ID="PanelCustomerInfoheader" runat="server" BackColor="#10377C">
            <table border="0" cellpadding="0" cellspacing="0" class="table">
                <tr>
                    <td class="insertheader">Customer's Information</td>
                </tr>
            </table>
        </asp:Panel>

        <asp:Panel ID="PanelCustomerInfo" runat="server" BackColor="#E0E0E0">
            <table border="0" cellpadding="1" cellspacing="0" class="table">
                <tr>
                    <td style="width: 175px">
                        &nbsp;Title</td>
                    <td>
                        <asp:DropDownList ID="Title" runat="server" CssClass="content">
                            <asp:ListItem>MR</asp:ListItem>
                            <asp:ListItem>MS</asp:ListItem>
                            <asp:ListItem>MDM</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
               
                <tr>
                    <td style="width: 175px">
                        &nbsp;Name:</td>
                    <td><asp:TextBox ID="Name" runat="server"></asp:TextBox></td>
                </tr>
               
                <tr>
                    <td style="width: 175px">
                        &nbsp;Birthday (DD-MM-YYYY)</td>
                    <td><asp:TextBox ID="DateOfBirth" runat="server"></asp:TextBox></td>
                </tr>
               
                <tr>
                    <td style="width: 175px">
                        &nbsp;Mailing Address:</td>
                    <td><asp:TextBox ID="Address" runat="server" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
               
                <tr>
                    <td style="width: 175px">
                        &nbsp;Postal Code:</td>
                    <td><asp:TextBox ID="PostalCode" runat="server"></asp:TextBox></td>
                </tr>
               
                <tr>
                    <td style="width: 175px">
                        &nbsp;Contact - Home:</td>
                    <td><asp:TextBox ID="ContactHome" runat="server"></asp:TextBox></td>
                </tr>
               
                <tr>
                    <td style="width: 175px">
                        &nbsp;Contact - Mobile:</td>
                    <td><asp:TextBox ID="ContactMobile" runat="server"></asp:TextBox></td>
                </tr>
            </table>
        </asp:Panel>
        <br />


        <asp:Panel ID="PanelAccountInfoHeader" runat="server" BackColor="#10377C">
            <table border="0" cellpadding="0" cellspacing="0" class="table">
                <tr>
                    <td class="insertheader">Account Information</td>
                </tr>
            </table>
        </asp:Panel>

        <asp:Panel ID="PanelAccountInfo" runat="server" BackColor="#E0E0E0">
            <table border="0" cellpadding="1" cellspacing="0" class="table">
                <tr>
                    <td style="width: 163px; height: 24px">
                        &nbsp;Email (username for login):</td>
                    <td style="width: 172px; height: 24px"><asp:TextBox ID="Username" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 163px; height: 24px">
                        &nbsp;Password:</td>
                    <td style="width: 172px; height: 24px">
                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 163px; height: 24px">
                    </td>
                    <td style="width: 172px; height: 24px">
                        <asp:Button ID="BtnSignup" runat="server" Text="Sign up" OnClick="BtnSignup_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
        <uc1:Status ID="Status" runat="server" />
   
   

<ajaxControlToolkit:PasswordStrength ID="PasswordStrength" runat="server"
        TargetControlID="Password"
        DisplayPosition ="BelowRight"
        StrengthIndicatorType="Text"
        PreferredPasswordLength="10"
        PrefixText="Strength:"
        HelpStatusLabelID="TextBox1_HelpLabel"
        TextCssClass="TextIndicator_TextBox1"
        TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
        MinimumNumericCharacters="0"
        MinimumSymbolCharacters="0"
        RequiresUpperAndLowerCaseCharacters="false"
/>
<ajaxControlToolkit:RoundedCornersExtender ID="RE1" runat="server"
    TargetControlID="PanelCustomerInfoHeader"
    Radius="0"
    Corners="All"
/>

<ajaxControlToolkit:RoundedCornersExtender ID="RE2" runat="server"
    TargetControlID="PanelCustomerInfo"
    Radius="0"
    Corners="All"
/>

<ajaxControlToolkit:RoundedCornersExtender ID="RE3" runat="server"
    TargetControlID="PanelAccountInfoHeader"
    Radius="0"
    Corners="All"
/>

<ajaxControlToolkit:RoundedCornersExtender ID="RE4" runat="server"
    TargetControlID="PanelAccountInfo"
    Radius="0"
    Corners="All"
/>

</ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="BtnSignup" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>

<asp:ObjectDataSource ID="ODSUserInfo" runat="server" InsertMethod="InsertUserInfo"
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetUserInfoViaId"
    TypeName="UserInfoDataSetTableAdapters.UserInfoTableAdapter" OnInserting="ODSUserInfo_Inserting">
    <SelectParameters>
        <asp:Parameter Name="Id" Type="Int32" />
    </SelectParameters>
    <InsertParameters>
        <asp:ControlParameter ControlID="Title" Name="Title" PropertyName="SelectedValue"
            Type="String" />
        <asp:ControlParameter ControlID="Name" Name="Name" PropertyName="Text" Type="String" />
        <asp:ControlParameter ControlID="DateOfBirth" Name="DateOfBirth" PropertyName="Text"
            Type="DateTime" />
        <asp:ControlParameter ControlID="Address" Name="Address" PropertyName="Text" Type="String" />
        <asp:ControlParameter ControlID="PostalCode" Name="PostalCode" PropertyName="Text"
            Type="Int32" />
        <asp:ControlParameter ControlID="ContactHome" Name="ContactHome" PropertyName="Text"
            Type="Int32" />
        <asp:ControlParameter ControlID="ContactMobile" Name="ContactMobile" PropertyName="Text"
            Type="Int32" />
        <asp:ControlParameter ControlID="Username" Name="Username" PropertyName="Text" Type="String" />
        <asp:ControlParameter ControlID="Password" Name="Password" PropertyName="Text" Type="String" />
    </InsertParameters>
</asp:ObjectDataSource>

[/My codes on the .ascx page]

Not really sure why is this happening. But however when i build and run the pages, they totally work fine. Just that the error at the .aspx page. Could anyone please advice me whats wrong??
ASKER CERTIFIED SOLUTION
Avatar of igor_alpha
igor_alpha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial