.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to improve ajax asynchronous postback speed

Posted By:      Posted Date: October 10, 2010    Points: 0   Category :ASP.Net

hello everybody.

i am trying to increase my web based game movement system speed as much as possible.

i am using ajax asynchronous postbacks for moving on the map. (if you wanna check address http://www.pokemoncraft.com/gamepage.aspx )

so i am looking for all kind of tips to increase ajax asynchronous postback speed.

thank you

View Complete Post

More Related Resource Links

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

jQuery live() and ASP.NET Ajax asynchronous postback

The issue is that normally $(document).ready() is called when the DOM is ready to be manipulated. But this doens't happen after an ASP.NET Ajax asynch postback occurs.

This means that the initial jQuery bindings won't be automatically available after the asynchronous postback is over. I underline "automatically" here because my last post describes more possibilities, how this issue can be worked around.

Can't access dynamicly created textbox in AJAX postback.


I have a script which creates a dynamic textbox (and more) in an AJAX async post back. But when I try to acess the textbox I am told "Object reference not set to an  instance of an object". I have been strugleing with this for a long time and can not get it to work so please help me. This is written in C# .Net 4. The line causing the problem is the very last one where I have tbGameName.Text.Trim()

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class GameInformation_AddUpcomingRelease : System.Web.UI.Page
    protected override void OnInit(EventArgs e)
        string v = this.Request.Params.Get(this.ddlAmountToAdd.UniqueID);

        string[] Regions = { "USA", "Japan", "Europe", "Other" }; //Create a string array of regions.
        string[] Platforms = { "PlayStation 3", "X-Box 360", "Wii", "Computer", "PSP", "Other" }; //Create a string array of platforms

        CreateControlSet(1, Regions, Platforms); //Generate the first Control Set

        if (!string.IsNullOrEmpty(v))
            for (byte i = 2; i <= Convert.ToByte(v); i++)
                //Add a

How to improve the speed of data transfer in WCF service using basicHttpBinding


Hi All,

                I come across an issue in transferring 2MB file into the server through WCF service from my Windows Mobile client using 3G connection. Application takes around 2 minute to upload fine into server.

It’s an image file is there any way I can improve the speed.


I used basic httpBinding and WCF Service accepts file as byte array.

E.g. Operation contract.

Int UploadData(byte[] inImage)

Thanks ,

Jayakumar A

avoid postback in multiple drodown list using ajax


i have 4 dropdownlist..state,district,place,product..where we have to select the product depend on state ,district ,place and product and there is search button for search particular product where iam using gridview to dipslay particular product deatails . i do not want to do auto past back eventfor page  when i select dropdownlist...i tried using ajax but still i cant get through..i tried this code but,,,,please helpme...how to use ajax for 4 dropdownlist & 1 button so that i can dispaly product deatails.....

<asp:scriptmanager id="ScriptManager1" runat="server">
                    <asp:updatepanel id="UpdatePanel1" runat="server">
                    <asp:label id="Label1" runat="server" stext="STATE:" style="display:inline " mce_style="display:inline ">STATE:</asp:label>
                    <asp:dropdownlist id="DDLSTATE" runat="server" height="18px" style="position :relative; top: 6px; left: 2px;" mce_style="/position :relative; top: 6px; left: 2px;" autopostback="True" datasourceid="SDSSTATE" datatextfield="PUSTA" datavaluefield="P

How to prevent master page postback when update panel asynchronous postback happened


Hello everybody.

When an asynchronous postback happened inside update panel, another postback happens also for MasterPage not only update panel embedded page .

I want to prevent this MasterPage postback .

is this possible ?

think like i have a MasterPage

and another page which is test.aspx which is content page of MasterPage

i have update panel at test.aspx

when asynchronous postback happens at this test.aspx update panel it also loads MasterPage Page_Load

i want to prevent this (it should not also load MasterPage Page_Load)

Thank you

How to keep whole page scroll position after asynchronous postback


Hello everybody. i am using asp.net 4.0 iis 7.5 microsoft visual studio 2010

what i want is keep whole page (browser) scroll position (not a div or panel) when asynchronous postback happened (update panel)

how can i do this

actually i had a function which can keep div scroll bar position after postback like this


   <script type="text/javascript">
            var xPos, yPos;
            var prm = Sys.WebForms.PageRequestManager.getInstance();
            function BeginRequestHandler(sender, args) {
                xPos = document.getElementById('Main').scrollLeft;
                yPos = document.getElementById('Main').scrollTop;
            function EndRequestHandler(sender, args) {
                document.getElementById('Main').scrollLeft = xPos;
                document.getElementById('Main').scrollTop = yPos;


but i could not find browser scroll bar id to get its values to get with document.getElementById

thanks for answers

ASP.NET AJAX : Collapsible Panel PostBack


Hi experts,

I have used CollapsiblePanel on my page, but when page is Post back, then it is redrawing all controls inside to it.


How to resolve it?

Please reply guys.


Ajax redirect without postback ?


Hi all.

I'm beginner developer.

How to redirect without postback?

I do http://forums.asp.net/p/1099664/4180179.aspx#4180179

but get error

                         throw new Error('ASP.NET Ajax client-side framework failed to load.'

and use this

<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.5)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.5)">

it's still postback.


<asp:HyperLink ID="HyperLink2" runat="server" CssClass="mainlink" NavigateUrl="~/Index.aspx">Home</asp:HyperLink>
<asp:LinkButton ID="LinkButton1" runat="server" CssClass="mainlink" PostBackUrl="~/Index.aspx">Index</asp:LinkButton>
<asp:HyperLink ID="HyperLink1&q

How to improve the search speed in MOSS 2007


Hi Guys,


In My project we have implemented search using KeywordQuery class, and its working properly.


We have improved the search speed by optimizing the code at the best level


Do we have other options to improve the search speed without touching the code

Postback without refresh on dropdownlists (no AJAX)


hello! I need help on my school project

Autopostback works but when one dropdownlist is selected the page refreshes. When the user select one dropdownlist, another dropdownlist will then populate if not its empty. After submitting the form, selecting dropdownlist will remove all the validation message. What i want to achieve is to have javascript to manually postback instead of using autopostback so that the validation message will still remain after selecting from dropdownlist but without using of AJAX as server cannot support :D!! ty

Asynchronous update of page immediately after load to improve response time

The article Asynchronous update of page immediately after load to improve response time was added by kaushalendrarai on Monday, March 14, 2011.

Response time is one of major factor in deciding the performance of web application. Many time we come across pages where content of page can be updated asynchronously immediatly after the page rendering in responce to page request. We can achive this

Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).

AJAX GridView Checkbox Select All in ASP.Net

In the previous article GridView Select Multiple Rows you learnt the multiple row selection in GridView control. Here you will get the C# code sample to select all the gridview rows using single checkbox server control. You can highlight the selected rows with different color and Font state Bold. If you want to use the selection values on different ASP.Net

AJAX GridView Paging and Sorting using C# in ASP.Net

To enable the GridView Paging and Sorting to update the GridView Data without refreshing the ASP.Net web page AJAX Extension controls are used. UpdatePanel is used to hold the GridView control that triggers the events for the controls placed inside it. By Default UpdatePanel triggers the asynchronous postbacks for its child controls.

GridView Paging Using Ajax in ASP.Net

To enable the GridView Paging and Sorting to update the GridView Data without refreshing the ASP.Net web page AJAX Extension controls are used. UpdatePanel is used to hold the GridView control that triggers the events for the controls placed inside it. By Default UpdatePanel triggers the asynchronous postbacks for its child controls.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.

jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend