Don't do Response.Write inside the Page_Load when using Atlas

Atlas is pretty cool since it allows you to make client side calls and hence saves the postback. Although the postback is still called but on the client side.

Your Atlas client side calls can fail if you do a Response.Write when the postback is true. So, don't do the Response.Write.

Check out the code below:

protected void Page_Load(object sender, EventArgs e)

{

if (Page.IsPostBack == true)

{

Response.Write("This response will kill the page.");

}

}

powered by IMHO 1.3

Print | posted @ Saturday, April 01, 2006 9:30 PM

Twitter