Object doesn't support this property?

4 posts, 0 answers
  1. liu qingshui
    liu qingshui avatar
    27 posts
    Member since:
    Mar 2010

    Posted 22 May 2010 Link to this post

    I don't know what's the reason,it occur this error.I tried some methods,all doesn't work,can someone give me some ideas?
    My version is 2009.1.402.35.My .Net FrameWork is .Net 3.5.
    <
    body> 
        <form id="form1" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  > 
            <AjaxSettings> 
             
                <telerik:AjaxSetting AjaxControlID="cbxSolvedOrNo" > 
                    <UpdatedControls > 
                        <telerik:AjaxUpdatedControl ControlID="lblWishTime" LoadingPanelID="RadAjaxPanel1" /> 
                        <telerik:AjaxUpdatedControl ControlID="rdtpWishTime" LoadingPanelID="RadAjaxPanel1" /> 
                        <telerik:AjaxUpdatedControl ControlID="dltServices" LoadingPanelID="RadAjaxPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
        </telerik:RadAjaxPanel> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" /> 
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
     
        <table class="table" width="805px"
            
            <tr> 
                <td> 
                    <table class="table" width="100%" border="0"
                        <tr> 
                            <td align="right" style="width: 120px;"
                                <asp:CustomValidator ID="cvUser" runat="server" ErrorMessage="必填" OnServerValidate="cvUser_ServerValidate" 
                                    SetFocusOnError="true"></asp:CustomValidator>&nbsp;请&nbsp;&nbsp;求&nbsp;&nbsp;人: 
                            </td> 
                            <td style="width: 150px;"
                                <uc1:USelectUser ID="USelectUser1" runat="server" Width="150" ExtSeleClientEvent="selectUserObj" /> 
                            </td> 
                           
                        </tr> 
                    </table> 
                </td> 
            </tr> 
            <tr> 
                <td> 
                    <table class="table" width="100%"
                        <tr> 
                            <td align="right" style="width: 120px;"
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="rblEnventSource" 
                                    ErrorMessage="必填" SetFocusOnError="True"></asp:RequiredFieldValidator>&nbsp;事件来源: 
                            </td> 
                            <td align="left"
                                <asp:RadioButtonList ID="rblEnventSource" runat="server" CellPadding="0" CellSpacing="5" 
                                    RepeatLayout="Table" RepeatDirection="Horizontal"
                                </asp:RadioButtonList> 
                            </td> 
                            <td align="right" style="width: 80px;"
                                临时电话: 
                            </td> 
                            <td align="left" style="width: 110px;"
                                <telerik:RadTextBox ID="rtxtTelephone" runat="server" Width="90px"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
            <tr> 
                <td> 
                    <table class="table" width="100%"
                        <tr> 
                            <td align="right" style="width: 120px;"
                                <asp:RequiredFieldValidator ID="rfvWishTime" runat="server" ErrorMessage="必填" ControlToValidate="rdtpWishTime" 
                                    SetFocusOnError="True"></asp:RequiredFieldValidator>&nbsp;<asp:Label ID="lblWishTime" 
                                        runat="server" Text="期望解决时间:"></asp:Label> 
                            </td> 
                            <td align="left" style="width: 260px;"
                                <telerik:RadDateTimePicker ID="rdtpWishTime" runat="server" Width="145px"
                                </telerik:RadDateTimePicker> 
                                <asp:CompareValidator ID="cvWishTime" runat="server" ControlToCompare="rdtpRequestTime" 
                                    ControlToValidate="rdtpWishTime" ErrorMessage="期望应大于请求日期!" Operator="GreaterThanEqual" 
                                    SetFocusOnError="True"></asp:CompareValidator> 
                            </td> 
                            <td align="right" style="width: 60px; visibility: hidden;"
                                请求时间: 
                            </td> 
                            <td align="left" style="visibility: hidden;"
                                <telerik:RadDateTimePicker ID="rdtpRequestTime" runat="server" Width="150px"
                                </telerik:RadDateTimePicker> 
                            </td> 
                            <td align="left" style="width: 180px;"
                                <asp:CheckBox ID="cbxSolvedOrNo" runat="server" Text="是否直接解决" OnCheckedChanged="cbxSolvedOrNo_CheckedChanged" 
                                    AutoPostBack="true" /> 
                                <asp:CheckBox ID="cbxReqairForm" runat="server" Text="是否为补单" OnCheckedChanged="cbxReqairForm_CheckedChanged" 
                                    AutoPostBack="true" /> 
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
            <tr> 
                <td> 
                    <table class="table" width="100%"
                        <tr> 
                            <td align="right" style="width: 120px;"
                                用户请求内容: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="rtxbRequestContent" runat="server" Width="99%" Height="60px" 
                                    TextMode="MultiLine" EmptyMessage="请输入用户请求内容"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
            <tr> 
                <td> 
                    <table class="table" width="100%"
                        <tr> 
                            <td style="width: 120px" align="right"
                                备&nbsp;&nbsp;注: 
                            </td> 
                            <td> 
                                <telerik:RadTextBox ID="rtxbNote" runat="server" Width="99%" Height="40px" TextMode="MultiLine" 
                                    ToolTip="备注" EmptyMessage="请输入备注内容"
                                </telerik:RadTextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="width: 120px" align="right"
                                上传附件: 
                            </td> 
                            <td> 
                                <asp:UpdatePanel runat="server" ID="UpdatePanel1"
                                    <ContentTemplate> 
                                        <asp:FileUpload ID="FileUpload1" runat="server" CssClass="content" Width="300px" /> 
                                    </ContentTemplate> 
                                    <Triggers> 
                                        <asp:PostBackTrigger ControlID="btnSave" /> 
                                    </Triggers> 
                                </asp:UpdatePanel> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                &nbsp; 
                            </td> 
                            <td> 
                                <asp:LinkButton ID="lbtnDownload" runat="server" ToolTip="下载" OnClick="lbtnDownload_Click"></asp:LinkButton> 
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
            <div id="dltServices" runat="server"
                <tr> 
                    <td> 
                        <span style="margin-left: 5px;"><b>服务单信息</b></span>&nbsp;<asp:CustomValidator ID="cvServices" 
                            runat="server" ErrorMessage="必选其一" OnServerValidate="cvServices_ServerValidate" 
                            SetFocusOnError="True"></asp:CustomValidator> 
                    </td> 
                </tr> 
                <%-- <asp:UpdatePanel ID="UpdatePanel2" runat="server"
            <ContentTemplate>--%> 
                <tr> 
                    <td> 
                        <table class="table" width="100%"
                            <tr> 
                                <td> 
                                    <div> 
                                        <asp:DataList ID="dlServices" runat="server" Width="100%" DataKeyField="ID" OnItemDataBound="dlServices_ItemDataBound"
                                            <HeaderTemplate> 
                                                <table width="100%"
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <tr> 
                                                    <td style="width: 150px;" align="left"
                                                        <asp:Label ID="lblKeyID" runat="server" Text='<%#Eval("ID") %>' Visible="false"></asp:Label> 
                                                        <asp:CheckBox ID="chkItem" runat="server" Text='<%#Eval("ServiceType") %>' /> 
                                                    </td> 
                                                    <td align="left"
                                                        <%--  <telerik:RadTextBox ID="txtApply" runat="server" Width="90%" TextMode="MultiLine" 
                                                        EmptyMessage="请输入申请内容" Height="40px" CausesValidation="true"
                                                    </telerik:RadTextBox>--%> 
                                                        <asp:TextBox ID="txtApply" runat="server" TextMode="MultiLine" Height="40px" Width="99%"></asp:TextBox> 
                                                    </td> 
                                                </tr> 
                                            </ItemTemplate> 
                                            <FooterTemplate> 
                                                </table> 
                                            </FooterTemplate> 
                                        </asp:DataList> 
                                    </div> 
                                </td> 
                            </tr> 
                        </table> 
                    </td> 
                </tr> 
            </div> 
            <%--</ContentTemplate> 
            <Triggers> 
            <asp:AsyncPostBackTrigger  ControlID="cbxSolvedOrNo" EventName="CheckedChanged"/> 
            </Triggers> 
              </asp:UpdatePanel>--%> 
            <tr> 
                <td align="center" style="height: 40px;"
                    <asp:Button ID="btnSave" runat="server" Text="受理" Width="80px" OnClick="btnSave_Click" />&nbsp; 
                    <asp:Button ID="btnStop" runat="server" Text="暂存" Width="80px" OnClick="btnStop_Click" />&nbsp; 
                    <input id="Button1" type="button" value="返回" onclick="Close()" style="width: 80px;" /> 
                </td> 
            </tr> 
        </table> 
        </form> 
    </body> 

      protected void cbxSolvedOrNo_CheckedChanged(object sender, EventArgs e) 
        { 
            lblWishTime.Visible = !cbxSolvedOrNo.Checked; 
            rdtpWishTime.Visible = !cbxSolvedOrNo.Checked; 
            rfvWishTime.Enabled = !cbxSolvedOrNo.Checked; 
            cvWishTime.Enabled = !cbxSolvedOrNo.Checked; 
            EnableServiceList(cbxSolvedOrNo.Checked); 
            dltServices.Visible = !cbxSolvedOrNo.Checked; 
     
        } 

  2. Dimo
    Admin
    Dimo avatar
    8331 posts

    Posted 24 May 2010 Link to this post

    Hi Liu Qingshui,

    I created a test page based on your code snippets, but the error was not reproduced. Am I missing something?


    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_default" %>
    <%@ Import Namespace="System.Data" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     
    <head runat="server">
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>RadControls</title>
    </head>
    <body>
    <form id="form1" runat="server">
     
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  >
        <AjaxSettings>
          
            <telerik:AjaxSetting AjaxControlID="cbxSolvedOrNo" >
                <UpdatedControls >
                    <telerik:AjaxUpdatedControl ControlID="lblWishTime" LoadingPanelID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="rdtpWishTime" LoadingPanelID="RadAjaxPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="dltServices" LoadingPanelID="RadAjaxPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    </telerik:RadAjaxPanel>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"></telerik:RadCodeBlock>
     
    <table class="table" width="805px">
         
        <tr>
            <td>
                <table class="table" width="100%" border="0">
                    <tr>
                        <td align="right" style="width: 120px;">
                            <asp:CustomValidator ID="cvUser" runat="server" ErrorMessage="必填"
                                SetFocusOnError="true"></asp:CustomValidator>  请  求  人:
                        </td>
                        <td style="width: 150px;">
                            uc1:USelectUser
                        </td>
                        
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table class="table" width="100%">
                    <tr>
                        <td align="right" style="width: 120px;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="rblEnventSource"
                                ErrorMessage="必填" SetFocusOnError="True"></asp:RequiredFieldValidator>  事件来源:
                        </td>
                        <td align="left">
                            <asp:RadioButtonList ID="rblEnventSource" runat="server" CellPadding="0" CellSpacing="5"
                                RepeatLayout="Table" RepeatDirection="Horizontal">
                            </asp:RadioButtonList>
                        </td>
                        <td align="right" style="width: 80px;">
                            临时电话:
                        </td>
                        <td align="left" style="width: 110px;">
                            <telerik:RadTextBox ID="rtxtTelephone" runat="server" Width="90px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table class="table" width="100%">
                    <tr>
                        <td align="right" style="width: 120px;">
                            <asp:RequiredFieldValidator ID="rfvWishTime" runat="server" ErrorMessage="必填" ControlToValidate="rdtpWishTime"
                                SetFocusOnError="True"></asp:RequiredFieldValidator> <asp:Label ID="lblWishTime"
                                    runat="server" Text="期望解决时间:"></asp:Label>
                        </td>
                        <td align="left" style="width: 260px;">
                            <telerik:RadDateTimePicker ID="rdtpWishTime" runat="server" Width="145px">
                            </telerik:RadDateTimePicker>
                            <asp:CompareValidator ID="cvWishTime" runat="server" ControlToCompare="rdtpRequestTime"
                                ControlToValidate="rdtpWishTime" ErrorMessage="期望应大于请求日期!" Operator="GreaterThanEqual"
                                SetFocusOnError="True"></asp:CompareValidator>
                        </td>
                        <td align="right" style="width: 60px; visibility: hidden;">
                            请求时间:
                        </td>
                        <td align="left" style="visibility: hidden;">
                            <telerik:RadDateTimePicker ID="rdtpRequestTime" runat="server" Width="150px">
                            </telerik:RadDateTimePicker>
                        </td>
                        <td align="left" style="width: 180px;">
                            <asp:CheckBox ID="cbxSolvedOrNo" runat="server" Text="是否直接解决"
                                AutoPostBack="true" />
                            <asp:CheckBox ID="cbxReqairForm" runat="server" Text="是否为补单"
                                AutoPostBack="true" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table class="table" width="100%">
                    <tr>
                        <td align="right" style="width: 120px;">
                            用户请求内容:
                        </td>
                        <td>
                            <telerik:RadTextBox ID="rtxbRequestContent" runat="server" Width="99%" Height="60px"
                                TextMode="MultiLine" EmptyMessage="请输入用户请求内容">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table class="table" width="100%">
                    <tr>
                        <td style="width: 120px" align="right">
                            备   注:
                        </td>
                        <td>
                            <telerik:RadTextBox ID="rtxbNote" runat="server" Width="99%" Height="40px" TextMode="MultiLine"
                                ToolTip="备注" EmptyMessage="请输入备注内容">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px" align="right">
                            上传附件:
                        </td>
                        <td>
                            <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                                <ContentTemplate>
                                    <asp:FileUpload ID="FileUpload1" runat="server" CssClass="content" Width="300px" />
                                </ContentTemplate>
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="btnSave" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                               
                        </td>
                        <td>
                            <asp:LinkButton ID="lbtnDownload" runat="server" ToolTip="下载"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <div id="dltServices" runat="server">
            <tr>
                <td>
                    <span style="margin-left: 5px;"><b>服务单信息</b></span> <asp:CustomValidator ID="cvServices"
                        runat="server" ErrorMessage="必选其一"
                        SetFocusOnError="True"></asp:CustomValidator>
                </td>
            </tr>
            <%-- <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>--%>
            <tr>
                <td>
                    <table class="table" width="100%">
                        <tr>
                            <td>
                                <div>
                                    <asp:DataList ID="dlServices" runat="server" Width="100%" DataKeyField="ID">
                                        <HeaderTemplate>
                                            <table width="100%">
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td style="width: 150px;" align="left">
                                                    <asp:Label ID="lblKeyID" runat="server" Text='<%#Eval("ID") %>' Visible="false"></asp:Label>
                                                    <asp:CheckBox ID="chkItem" runat="server" Text='<%#Eval("ServiceType") %>' />
                                                </td>
                                                <td align="left">
                                                    <%--  <telerik:RadTextBox ID="txtApply" runat="server" Width="90%" TextMode="MultiLine"
                                                    EmptyMessage="请输入申请内容" Height="40px" CausesValidation="true">
                                                </telerik:RadTextBox>--%>
                                                    <asp:TextBox ID="txtApply" runat="server" TextMode="MultiLine" Height="40px" Width="99%"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table>
                                        </FooterTemplate>
                                    </asp:DataList>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </div>
        <%--</ContentTemplate>
        <Triggers>
        <asp:AsyncPostBackTrigger  ControlID="cbxSolvedOrNo" EventName="CheckedChanged"/>
        </Triggers>
          </asp:UpdatePanel>--%>
        <tr>
            <td align="center" style="height: 40px;">
                <asp:Button ID="btnSave" runat="server" Text="受理" Width="80px" /> 
                <asp:Button ID="btnStop" runat="server" Text="暂存" Width="80px" /> 
                <input id="Button1" type="button" value="返回" onclick="Close()" style="width: 80px;" />
            </td>
        </tr>
    </table>
     
    </form>
    </body>
    </html>


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
     
    public partial class _default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
     
        }
     
        protected void cbxSolvedOrNo_CheckedChanged(object sender, EventArgs e)
        {
            lblWishTime.Visible = !cbxSolvedOrNo.Checked;
            rdtpWishTime.Visible = !cbxSolvedOrNo.Checked;
            rfvWishTime.Enabled = !cbxSolvedOrNo.Checked;
            cvWishTime.Enabled = !cbxSolvedOrNo.Checked;
            //EnableServiceList(cbxSolvedOrNo.Checked);
            dltServices.Visible = !cbxSolvedOrNo.Checked;
        }
    }



    Best wishes,
    Dimo
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. liu qingshui
    liu qingshui avatar
    27 posts
    Member since:
    Mar 2010

    Posted 26 May 2010 Link to this post

    Thank your help. I found when I delete "asp:UpdatePanel " ,the AjaxManager work properly,with this UpdatePanel,there is this error.
    I hope I can find the true reason why it behavor like that.
  5. Dimo
    Admin
    Dimo avatar
    8331 posts

    Posted 26 May 2010 Link to this post

    Hi Liu,

    Generally, you should make sure that the controls ajaxified by RadAjaxManager do not update the asp:UpdatePanel content and vice versa.

    All the best,
    Dimo
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top