Entries By Tag: JavaScript


ASP.NET – AJAX client side network calls

Jun 17, 2009 by Constantin

ASP.NET AJAX is a Microsoft solution that provides support for implementing XMLHttp requests. This type of request is different from the normal web requests by the format and amount of data it sends to and receives from the server – it is a minimal (partial) postback, sending and receiving only the important data, instead of transferring the entire page, as a normal postback would do.

Normally we would take advantage of this feature by using an UpdatePanel, but we can also do it by using network calls – as we’ll be able to see in the following example ... read more


Post a comment   (2 comments)



Making a Response.Redirect from plain HTML or JavaScript

Jan 27, 2009 by Constantin

The standard approach for making a URL redirection in ASP.NET is to use a Redirect call:

Response.Redirect("http://www.example.com/mypage.aspx")

What happens behind the scenes: the server (IIS) sends to the browser a simple HTTP Response, containing a message code ("302"), which essentially tells the browser to issue a new HTTP Request, for obtaining the new destination URL. Next, the browser issues that new request, and in the end it receives another page, served from that new URL.

This redirection behavior can be also obtained by plain HTML (no ASP.NET needed), if including in the HTML page a "meta tag": ... read more


Post a comment   (33 comments)







Blog Home   Contact
or go to the SBP website

Recent blog entries



Archives

All tags