Search This Blog

Thursday, October 14, 2010

ASP.NET Page Getting PostBack Twice

When Postback getting twice in a page life cycle. It means your page having a <TD>,<TR> or <BODY> tag with attribute BACKGOUND e.g. BACKGOUND="#ffffff" or an image tag with empty image source e.g. <img src="" />.
If you replace BACKGOUND to bgcolor and do not keep image source empty then you will not get postback twice.