Hi,

I have very simple project in vs2010 and mssql 2008. with only single page for example.

when i run project its take too much time for loading..
when i change the value of radio button it will take some process.
i use updatepanel also and autopostback=true

radio button takes time for process. between changing the value.
i use dropdown in another Project same like this. it also take time for process.

how can i reduce this process. any suggestion acceptable.

thanks in advance

jack

<%@ Page Title="" Language="C#" MasterPageFile="~/NewFolder1/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="NewFolder1_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server">
                <table>
                    <tr>
                        <td>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td> 
                            <asp:RadioButtonList ID="rdbStatus" runat="server" RepeatDirection="Horizontal" AutoPostBack="True"
                                CssClass="txttextlable" TabIndex="1" Style="background: none;">
                                <asp:ListItem>New</asp:ListItem>
                                <asp:ListItem>Contract</asp:ListItem>
                                <asp:ListItem>Inquiry</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="TextBox4" runat="server" AutoPostBack="True"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <asp:Button ID="Button1" runat="server" Text="Button" /> 
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

Update panel are sweet in some scenarios, you don't have to do too much to add that ajax feeling to your website, but the problem is that Update Panel send the whole html back and forth, which can slow down the web page.

I will try to take out the update panel and see if you have any differences also check if you can use de cache system.

Ya update panel is a headache. google lazy loading of update panel you may find something intresting

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.