Hi,
I have developed a small application which makes use of ajax combo box drop down list. Problem is it is taking time while getting loaded on internet explorer. But i have seen it to work normally on other browsers. Can any one suggest me how can even make it to work normally on IE.
Regards,
rohith

Could you please show your code? It is very difficult to pinpoint what portion of your code that may not be compatible with IE from what you explain.

Could you please show your code? It is very difficult to pinpoint what portion of your code that may not be compatible with IE from what you explain.

<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="envpage.aspx.cs" Inherits="envpage" Title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <div style="height: 308px; width: 100%; z-index: 1; left: 9px; top: 115px; ">
                <br />
                
           
        
        
                <br />
                <br />
                <br />
                <div style="font-weight: 700">
                <asp:ScriptManager ID="ScriptManager2" runat="server">
                            </asp:ScriptManager>
               
                    <asp:Label ID="Label3" runat="server" Text="PERMIT NUMBER" Font-Bold="True" 
                        Font-Size="Medium"></asp:Label>&nbsp;<cc1:ComboBox ID="envcombo" runat="server" AutoCompleteMode="SuggestAppend"
                         AutoPostBack="true" DataSourceID="SqlDataSource1" DataTextField="Permit_No" DataValueField="Permit_No"
                          DropDownStyle="DropDownList" MaxLength="0" style="display:inline;" onselectedindexchanged="envcombo_SelectedIndexChanged">
             </cc1:ComboBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label 
                        ID="Label4" runat="server" Font-Bold="True" Font-Size="Medium" Text="LASTNAME"></asp:Label>
                    &nbsp;<cc1:ComboBox ID="envcombo1" runat="server" AutoCompleteMode="SuggestAppend" 
                    AutoPostBack="True" DataSourceID="SqlDataSource2" DataTextField="LAST_NAME1" 
                    DataValueField="LAST_NAME1" DropDownStyle="DropDownList" MaxLength="0" 
                    style="display: inline;" 
                    onselectedindexchanged="envcombo1_SelectedIndexChanged">
                </cc1:ComboBox>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:sdeConnectionString %>" 
                        SelectCommand="SELECT DISTINCT LAST_NAME1 FROM sde.DOCKS2"></asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:sdeConnectionString2 %>" 
                    SelectCommand="SELECT DISTINCT Permit_No FROM sde.DOCKS2"></asp:SqlDataSource>
                <br /></div>
                
&nbsp;&nbsp;
         <asp:GridView ID="gvImages" runat="server" CellPadding="4" 
            ForeColor="#999999" GridLines="None" 
                    
                    
                    
                    
                    style="z-index: 1; left: 436px; top: 277px; position: absolute; height: 147px; width: 344px" 
                    AutoGenerateColumns="False" >
            <Columns>
                    <asp:HyperLinkField DataNavigateUrlFields="OBJECTID"
                    DataNavigateUrlFormatString="envdetails.aspx?id={0}"
                     Text="select" />
                     <asp:TemplateField HeaderText="ID" SortExpression="ID">
                     <ItemTemplate>
                         <asp:Label ID="obj" runat="server" Text='<%#Bind("OBJECTID")%>'></asp:Label>  
                     </ItemTemplate>
                         <HeaderStyle Width="400px" />
                         <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="PERMIT NUMBER" SortExpression="Permit_No">
                     <ItemTemplate>
                         <asp:Label ID="per" runat="server"   Text='<%#Bind("Permit_No")%>'></asp:Label>  
                     </ItemTemplate>
                         <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                         <HeaderStyle Width="300px" />
                         <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="LAST NAME" SortExpression="LAST_NAME1">
                     <ItemTemplate>
                         <asp:Label ID="last" runat="server" Text='<%#Bind("LAST_NAME1")%>'></asp:Label>  
                     </ItemTemplate>
                         <HeaderStyle Width="300px" />
                         <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="FIRST NAME" SortExpression="FIRST_NAME">
                     <ItemTemplate>
                         <asp:Label ID="first" runat="server" Text='<%#Bind("FIRST_NAME")%>'></asp:Label>  
                     </ItemTemplate>
                     
                         <HeaderStyle Width="300px" />
                         <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="COVE" SortExpression="ARM">
                     <ItemTemplate>
                         <asp:Label ID="arm" runat="server" Text='<%#Bind("ARM")%>'></asp:Label>  
                     </ItemTemplate>
                     
                         <HeaderStyle Width="300px" />
                         <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                     </asp:TemplateField>
                     </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F8F8FF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="White" />
             <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
</div>
</asp:Content>

code behind

protected void envcombo_SelectedIndexChanged(object sender, EventArgs e)
    {
         SqlConnection con = new SqlConnection();
        con.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["sde"].ConnectionString;
        SqlCommand cmd = new SqlCommand("Select OBJECTID,ID,Permit_No, LAST_NAME1, FIRST_NAME,ARM from sde.DOCKS2 where Permit_No = '" + envcombo.SelectedItem.Value
            + "'", con);

        cmd.CommandType = CommandType.Text;
        con.Open();
        SqlDataReader oDr = cmd.ExecuteReader();
        string name = "";
        while (oDr.Read())
        {
            name = oDr[3].ToString();
        }
        for (int i = 0; i < envcombo1.Items.Count; i++)
        {
            if (envcombo1.Items[i].Text == name)
            {
                envcombo1.SelectedIndex = i;
            }
        }
        con.Close();
        con.Open();
        gvImages.DataSource =cmd.ExecuteReader();
        gvImages.DataBind();
        con.Close();
    }
    protected void envcombo1_SelectedIndexChanged(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection();
        con.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["sde"].ConnectionString;
        SqlCommand cmd = new SqlCommand("Select OBJECTID,ID,Permit_No, LAST_NAME1, FIRST_NAME,ARM from sde.DOCKS2 where LAST_NAME1 = '" + envcombo1.SelectedItem.Value
            + "'", con);

        cmd.CommandType = CommandType.Text;
        con.Open();
        SqlDataReader oDr = cmd.ExecuteReader();
        string name = "";
        while (oDr.Read())
        {
            name = oDr[2].ToString();
        }
        for (int i = 0; i < envcombo.Items.Count; i++)
        {
            if (envcombo.Items[i].Text == name)
            {
                envcombo.SelectedIndex = i;
            }
        }
        con.Close();
        con.Open();
        gvImages.DataSource = cmd.ExecuteReader();
        gvImages.DataBind();
        con.Close();
    }

Hi,
I have developed a small application which makes use of ajax combo box drop down list. Problem is it is taking time while getting loaded on internet explorer. But i have seen it to work normally on other browsers. Can any one suggest me how can even make it to work normally on IE.
Regards,
rohith

Hi,
I am in need to know the exact problem. It will be very much helpful if any one can suggest me the solution.
thanks,
Rohith

I think this is an ASP question, despite its AJAX angle.

I can find nothing remotely familiar or comprehensible in the code and feel that denizens of the ASP forum might fair better with it.

Airshow

Have you made certain that your page is not rendering in quirks mode? Quirks mode in IE can cause slow javascript (though it is usually seen with jQuery).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.