Click here to Skip to main content
15,917,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
whnever i go for Design of the aspx file it doesn't show the controls, it shows the error creating control.


here is my source file of .aspx page



XML
<%@ Master Language="C#" EnableViewState="true" MasterPageFile="~/cERP.master" AutoEventWireup="true"
    Inherits="WebForms_Templates_BasicTemplate" CodeBehind="BasicTemplate.master.cs" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="Menu">
    <div id="divBasicTemplate">
        <asp:ContentPlaceHolder ID="MainBasicContent" runat="server">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <telerik:RadTabStrip ID="radTabStripBasic" runat="server" MultiPageID="RadMultiPageBasic"
                        SelectedIndex="0" OnTabClick="RadTabStrip1_TabClick">
                        <Tabs>
                            <telerik:RadTab Text="<u>A</u>ccount Details" SelectedIndex="0" AccessKey="A" Selected="True"
                                Value="radTabMainAccountDetails">
                            </telerik:RadTab>
                            <telerik:RadTab Text="<u>A</u>ddress Details" AccessKey="A" Value="radTabAddressDetails">
                            </telerik:RadTab>
                            <telerik:RadTab Text="<u>C</u>ontact Details" AccessKey="C" Value="radTabContactDetails">
                            </telerik:RadTab>
                            <telerik:RadTab Text="<u>S</u>upplier Details" AccessKey="S" Value="radTabSupplierDetails">
                            </telerik:RadTab>
                            <telerik:RadTab Text="S<u>u</u>pplier Items" AccessKey="S" Value="radTabSupplierItems">
                            </telerik:RadTab>
                            <telerik:RadTab Text="<u>T</u>ax Details" AccessKey="T" Value="radTabTaxDetails">
                            </telerik:RadTab>
                            <telerik:RadTab Text="<u>B</u>ank Details" AccessKey="B" Value="radTabBankDetails">
                            </telerik:RadTab>
                            <telerik:RadTab Text="<u>L</u>ist" Visible="false" AccessKey="L" Value="radTabList">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <table width="100%">
                        <tr style="background-color: #C0C0C0">
                            <td width="92%" align="center" valign="middle">
                                <asp:Label ID="lblFormName" runat="server" Font-Bold="True" Font-Names="Times New Roman"
                                    Font-Size="Large"></asp:Label>
                            </td>
                            <td width="8%" valign="middle" align="center">
                                <a href="#Show List" onclick="openWin();  return false;">Show List</a>
                            </td>
                        </tr>
                    </table>
                    <asp:Label ID="lblError" runat="server" Style="text-align: left" Text="Error Message"
                        Width="100%"></asp:Label>
                    <telerik:RadMultiPage ID="RadMultiPageBasic" runat="server" SelectedIndex="0" ScrollBars="Auto"
                        class="RadMultiPage">
                        <telerik:RadPageView ID="radPageViewAccountDetails" runat="server">
                            <table id="MainTable" style="width: 100%;">
                                <tr>
                                    <td style="width: 117px;">
                                        <asp:Label ID="lblSerialNo" runat="server" Font-Bold="False" TabIndex="1" Text="<u>S</u>erial No:"
                                            AccessKey="S" BackColor="#C0C0C0"></asp:Label>
                                    </td>
                                    <td style="width: 159px">
                                        <telerik:RadTextBox ID="SerialNo" runat="server" LabelCssClass="" Width="180px">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <%-- <tr>
                                    <td>
                                        <asp:Label ID="lblAccountID" runat="server" Font-Bold="False" TabIndex="3" Text="Account <u>I<u>D:"
                                            AccessKey="I" BackColor="#C0C0C0"></asp:Label>
                                    </td>
                                    <td colspan="3">
                                        <telerik:RadTextBox ID="AccountID" runat="server" Width="180px">
                                        </telerik:RadTextBox>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCode" runat="server" Font-Bold="False" TabIndex="3" Text="C&lt;u&gt;o&lt;u&gt;de:"
                                            AccessKey="I" BackColor="Silver"></asp:Label>
                                    </td>
                                    <td colspan="3">
                                        <telerik:RadTextBox ID="Code" runat="server" Width="180px">
                                        </telerik:RadTextBox>
                                        <asp:Label ID="lblAccountID" runat="server" AccessKey="I" BackColor="#C0C0C0" Font-Bold="False"
                                            TabIndex="3" Text="Account &lt;u&gt;I&lt;u&gt;D:"></asp:Label>
                                        <telerik:RadTextBox ID="AccountID" runat="server" Width="180px">
                                        </telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="background-color: #C0C0C0;">
                                        <asp:Label ID="lblAccountName" runat="server" Font-Bold="False" TabIndex="5" Text="Account <u>N</u>ame:"
                                            AccessKey="N"></asp:Label>
                                    </td>
                                    <td colspan="3">
                                        <telerik:RadTextBox ID="AccountName" runat="server" Width="180px">
                                        </telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="background-color: #C0C0C0; height: 38px;">
                                        <asp:Label ID="lblDescription" runat="server" Font-Bold="False" Text="<u>D</u>escription:"
                                            TabIndex="7" CssClass="textBox"></asp:Label>
                                    </td>
                                    <td colspan="3" style="height: 38px">
                                        <telerik:RadTextBox ID="Description" runat="server" Width="250px" TextMode="MultiLine"
                                            Height="" Rows="3">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="background-color: #C0C0C0;">
                                        <asp:CheckBox ID="IsActive" runat="server" Font-Bold="False" TabIndex="9" Text="Is Active"
                                            Visible="False" />
                                    </td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="background-color: #C0C0C0;">
                                        <asp:Label ID="lblCompanyLogo1" runat="server" Font-Bold="False" Text="Logo Of Company:"
                                            TabIndex="7" CssClass="textBox" Visible="false"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:FileUpload ID="fileUpload1" runat="server" Visible="false" />
                                        <asp:FileUpload ID="fileUpload2" runat="server" Visible="false" />
                                        <telerik:RadButton ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click"
                                            Visible="false">
                                            <Icon SecondaryIconCssClass="rbUpload" SecondaryIconRight="4" SecondaryIconTop="4" />
                                        </telerik:RadButton>
                                        <telerik:RadBinaryImage ID="Logo1" runat="server" Visible="false" />
                                        <telerik:RadBinaryImage ID="Logo2" runat="server" Visible="false" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <asp:ContentPlaceHolder ID="editableitem" runat="server">
                                        </asp:ContentPlaceHolder>
                                    </td>
                                </tr>
                            </table>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="radPageViewAddressDetails" runat="server">
                            <br />
                            <asp:ContentPlaceHolder ID="EditableAddressDetailsTemplate" runat="server" />
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="radPageViewContactDetails" runat="server">
                            <br />
                            <asp:ContentPlaceHolder ID="EditableContactDetails" runat="server">
                            </asp:ContentPlaceHolder>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="radPageViewSupplierDetails" runat="server">
                            <br />
                            <asp:ContentPlaceHolder ID="EditableSupplierDetails" runat="server">
                            </asp:ContentPlaceHolder>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="radPageViewSupplierItems" runat="server">
                            <br />
                            <asp:ContentPlaceHolder ID="contentPlaceHolderSupplierItems" runat="server">
                            </asp:ContentPlaceHolder>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="radPageViewTaxDetails" runat="server">
                            <br />
                            <asp:ContentPlaceHolder ID="EditableTaxDetails" runat="server">
                            </asp:ContentPlaceHolder>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="radPageViewBankDetails" runat="server">
                            <br />
                            <asp:ContentPlaceHolder ID="EditableBankDetails" runat="server">
                            </asp:ContentPlaceHolder>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="radPageViewList" runat="server">
                            <asp:ContentPlaceHolder ID="EditableViewList" runat="server">
                                <telerik:RadButton Style="display: none" ID="btnHidden" runat="Server" OnClick="btnHidden_Click">
                                </telerik:RadButton>
                                <input id="hReturnValue" type="hidden" runat="server" />
                                <telerik:RadCodeBlock runat="server">
                                    <script type="text/javascript">



                                        function openWin() {
                                            var oWnd = radopen("\\WebForms\\AccountList.aspx?AccountType=" + '<%=Application["accountType"]%>', "radWindowList");
                                        }
                                        function OnClientClose(oWnd, args) {
                                            var arg = args.get_argument();
                                            if (arg) {
                                                var SerialNo = arg.SerialNo;
                                                var buttonHidden = document.getElementById("<%= btnHidden.ClientID %>");
                                                if (buttonHidden) {
                                                    buttonHidden.value = SerialNo.toString();
                                                    document.getElementById("<%= hReturnValue.ClientID %>").value = SerialNo;
                                                    buttonHidden.click();
                                                }
                                            }
                                        }
                                    </script>
                                </telerik:RadCodeBlock>
                                <telerik:RadWindowManager ID="radWindowManager" Height="500px" Width="800px" DestroyOnClose="true"
                                    ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server"
                                    EnableShadow="true" EnableViewState="false">
                                    <Windows>
                                        <telerik:RadWindow ID="radWindowList" runat="server" AutoSize="true" Modal="True"
                                            Behaviors="Default" OnClientClose="OnClientClose" ReloadOnShow="true">
                                        </telerik:RadWindow>
                                    </Windows>
                                </telerik:RadWindowManager>
                            </asp:ContentPlaceHolder>
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="btnUpload" />
                </Triggers>
            </asp:UpdatePanel>
            <div style="bottom: auto">
                <asp:Panel ID="ActionPanel" runat="server" BackColor="#669999" Height="30px" Style="bottom: auto;
                    text-align: center; margin-top: 0px;" HorizontalAlign="Center">
                    <table>
                        <tr>
                            <td>
                                <telerik:RadButton ID="btnAdd" runat="server" Height="24px" OnClick="btnAdd_Click" Style="position: relative;
                                    z-index: 1" TabIndex="10" Text="Add" AccessKey="A" Width="70px" >
                                    <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                </telerik:RadButton>
                            </td>
                            <td>
                                <telerik:RadButton ID="btnModify" runat="server" OnClick="btnModify_Click" TabIndex="11"
                                    Text="Modify" Width="70px" AccessKey="M" Height="23px" >
                                    <Icon PrimaryIconCssClass="rbEdit" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                </telerik:RadButton>
                            </td>
                            <td>
                                <telerik:RadButton ID="btnSave" runat="server" Height="24px" OnClick="btnSave_Click" Style="position: relative;
                                    z-index: 1;" TabIndex="12" Text="Save" AccessKey="S" Width="70px" >
                                    <Icon PrimaryIconCssClass="rbSave" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                </telerik:RadButton>
                            </td>
                            <td>
                                <telerik:RadButton ID="btnDelete" runat="server" Height="24px" OnClick="btnDelete_Click"
                                    Style="position: relative; z-index: 1" TabIndex="13" Text="Delete" AccessKey="D"
                                    Width="70px" >
                                    <Icon PrimaryIconCssClass="rbRemove" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                </telerik:RadButton>
                            </td>
                            <td>
                                <telerik:RadButton ID="btnCancel" runat="server" Height="24px" OnClick="btnCancel_Click"
                                    Style="position: relative; z-index: 1;" TabIndex="14" Text="Cancel" AccessKey="C"
                                    Width="70px" >
                                    <Icon PrimaryIconCssClass="rbCancel" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                </telerik:RadButton>
                            </td>
                            <td>
                                <telerik:RadButton ID="btnPrint" runat="server" Height="24px" AccessKey="P" Style="position: relative;
                                    z-index: 1;" TabIndex="15" Text="Print" Width="70px" >
                                    <Icon PrimaryIconCssClass="rbPrint" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                </telerik:RadButton>
                            </td>
                            <td style="width: 100%">
                            </td>
                            <td>
                                <telerik:RadButton ID="btnMoveFirst" runat="server" Height="24px" OnClick="MoveRecord_Click"
                                    Style="position: relative; z-index: 1; width: 55px;" TabIndex="16" Text="&lt;&lt;"
                                    AccessKey="" Width="55px" />
                            </td>
                            <td>
                                <telerik:RadButton ID="btnMovePrevious" runat="server" Height="24px" OnClick="MoveRecord_Click"
                                    Style="position: relative; z-index: 1;" TabIndex="17" Text="&lt;" Width="55px"
                                    AccessKey="" />
                            </td>
                            <td>
                                <telerik:RadButton ID="btnMoveNext" runat="server" Height="24px" OnClick="MoveRecord_Click"
                                    TabIndex="18" Text="&gt;" Width="55px" AccessKey="" />
                            </td>
                            <td>
                                <telerik:RadButton ID="btnMoveLast" runat="server" Height="24px" OnClick="MoveRecord_Click"
                                    TabIndex="19" Text="&gt;&gt;" Width="55px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </asp:ContentPlaceHolder>
    </div>
</asp:Content>
Posted
Comments
R. Giskard Reventlov 18-May-11 9:08am    
What is the actual error you see?
durgeshtupkar10 18-May-11 10:15am    
In Design window i'm not able to see the proper designed page with the controls in above .aspx
fjdiewornncalwe 18-May-11 9:11am    
That's quite the code dump. How about just posting the html for the control that is throwing the error you are seeing. Not a lot of users are going to navigate that entire code block to help you.

1 solution

I Think there is error you are using telerik controls under
SQL
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>

. both have ajax control by different vendor so check after remove <asp:updatepanel xmlns:asp="#unknown">
 
Share this answer
 
Comments
durgeshtupkar10 18-May-11 10:44am    
sorry, by mistake i had deleted the using system.web,ui in one of the file,
now it's OK
thnks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900