This is a migrated thread and some comments may be shown as answers.

Could not complete the operation/Input problems. (sample included)

2 Answers 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Taburetka Kekc
Top achievements
Rank 1
Taburetka Kekc asked on 19 Oct 2009, 10:22 AM
Hello,

i'am getting an error while using IE (ff runs ok)
  htmlfile: Could not complete the operation due to error 800a025e. (select something from 1st combobox then select something from 2nd, and then click back on 1st combobox(on text area) ) p.s. exception is not shown when i click on 1st combocox arrow to expand list.

Also when i select something from 1st combo, then from 2nd (2nd combobox datasource is based on 1st combobox selection)
and after that try to insert some date into RadMaskedTextBox nothing happens (no text is inserted, no exceptions is thrown).
Here is aspx code (from form to /form for easy copypaste =] )
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
            <div> 
                <table> 
                    <tr> 
                        <td> 
                            <asp:Label ID="lblCustomer" runat="server" Text="Customer : "></asp:Label> 
                        </td> 
                        <td> 
                            <telerik:RadComboBox ID="cbxCustomerEng" DropDownWidth="250" runat="server" AllowCustomText="True" 
                                Filter="StartsWith" AutoPostBack="true" OnSelectedIndexChanged="cbxCustomerEng_SelectedIndexChanged"
                            </telerik:RadComboBox> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            <asp:Label ID="lblName" runat="server" Text="Name : "></asp:Label> 
                        </td> 
                        <td> 
                            <telerik:RadComboBox ID="cbxProjectName" Filter="StartsWith" runat="server" AllowCustomText="True" 
                                AutoPostBack="true" OnSelectedIndexChanged="cbxProjectName_SelectedIndexChanged" 
                                DropDownWidth="250"
                            </telerik:RadComboBox> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td style="height: auto;"
                            <asp:Label ID="lblStartTime" runat="server" Text="Start : "></asp:Label> 
                            <telerik:RadMaskedTextBox ID="tbxMyProjectStartTime" runat="server" Mask="##.####" 
                                Width="50px"
                            </telerik:RadMaskedTextBox> 
                            <asp:Label ID="lblEndTime" runat="server" Text="End : "></asp:Label> 
                            <telerik:RadMaskedTextBox ID="tbxMyProjectEndTime" runat="server" Mask="##.####" 
                                Width="50px"
                            </telerik:RadMaskedTextBox> 
                        </td> 
                    </tr> 
                </table> 
            </div> 
        </telerik:RadAjaxPanel> 
    </div> 
    </form> 

and it's cs file :
        public class customer 
        { 
            string customerName; 
 
            public string CustomerName 
            { 
                get { return customerName; } 
                set { customerName = value; } 
            } 
        } 
        public class project 
        { 
            string projectName; 
            public string ProjectName 
            { 
                get { return projectName; } 
                set { projectName = value; } 
            } 
 
            string customerName; 
            public string CustomerName 
            { 
                get { return customerName; } 
                set { customerName = value; } 
            } 
        } 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!IsPostBack) 
            { 
                List<customer> customers = new List<customer>(); 
                customer c1 = new customer(); 
                c1.CustomerName = "Cust1"
                customers.Add(c1); 
                customer c2 = new customer(); 
                c2.CustomerName = "Cust2"
                customers.Add(c2); 
                customer c3 = new customer(); 
                c3.CustomerName = "Cust3"
                customers.Add(c3); 
                customer c4 = new customer(); 
                c4.CustomerName = "Cust4"
                customers.Add(c4); 
 
                cbxCustomerEng.DataSource = customers
                cbxCustomerEng.DataTextField = "CustomerName"
                cbxCustomerEng.DataBind(); 
 
                List<project> projects = new List<project>(); 
                project p1 = new project(); 
                p1.CustomerName = "Cust1"
                p1.ProjectName = "Proj1"
                projects.Add(p1); 
                project p2 = new project(); 
                p2.CustomerName = "Cust1"
                p2.ProjectName = "Proj2"
                projects.Add(p2); 
                project p3 = new project(); 
                p3.CustomerName = "Cust2"
                p3.ProjectName = "Proj3"
                projects.Add(p3); 
                project p4 = new project(); 
                p4.CustomerName = "Cust2"
                p4.ProjectName = "Proj4"
                projects.Add(p4); 
                Session["projects"] = projects; 
            } 
        } 
 
        protected void cbxCustomerEng_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
            setProjectComboboxDS(cbxProjectName, e.Text); 
        } 
 
        private void setProjectComboboxDS(RadComboBox cbxProjectName, string customerName) 
        { 
            IList<project> projects = (IList<project>)Session["projects"]; 
            var ds = from temp in projects where temp.CustomerName == customerName select temp; 
 
            cbxProjectName.DataSource = ds
            cbxProjectName.DataTextField = "ProjectName"
            cbxProjectName.DataBind(); 
        } 
 
        protected void cbxProjectName_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
 
        } 

would be glad to hear how to fix this behaviour.

Thank You !

2 Answers, 1 is accepted

Sort by
0
Taburetka Kekc
Top achievements
Rank 1
answered on 20 Oct 2009, 07:44 AM
Hi,

i tihnk i found solution for my problem,
the root of it is IE 8 ;]

fix :
in ie8
Tools -> Compatibility View Settings -> and check Display all websites in compatilbility view

Thats all,
hope it'll help someone.

0
Kit West
Top achievements
Rank 1
answered on 02 Jun 2010, 12:32 AM
I got that same error when I tried to use the addScriptTags parameter on ...
Page.ClientScript.RegisterStartupScript(Me.GetType, "OnLoad", "CloseAndReload();", True) 
... but I had to revert to this:
Page.ClientScript.RegisterStartupScript(Me.GetType, "OnLoad", _  
  "<script type='text/javascript' language='javascript'>CloseAndReload();</script>")  
 
Tags
General Discussions
Asked by
Taburetka Kekc
Top achievements
Rank 1
Answers by
Taburetka Kekc
Top achievements
Rank 1
Kit West
Top achievements
Rank 1
Share this question
or