954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Very slow process in asp.net project.

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>
jackparsana
Junior Poster in Training
54 posts since Sep 2010
Reputation Points: 10
Solved Threads: 1
 

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.

jbisono
Posting Pro in Training
442 posts since May 2009
Reputation Points: 71
Solved Threads: 59
 

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

carrieathomer
Light Poster
37 posts since Oct 2011
Reputation Points: 11
Solved Threads: 8
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: