ASP.NET BUG, OnInit Load Multiple times


G

gary lim

http://groups.google.com.sg/groups?...=UTF-8&q=asp.net+bug+image+oninit&btnG=Search

with reference to another post regarding this issue.

I found a reproducible bug that cause the OnInit to run multiple time.

the cause:
<a href="http://www.dummy.com" ><img
src="../FakeFolder/justcomz_logo.GIF" width="260" height="54"
border="0" hspace="0"></a>

this cause the OnInit to run twice

the remedy
<a href="http://www.dummy.com" ><img
src="../RealFolder/justcomz_logo.GIF" width="260" height="54"
border="0" hspace="0"></a>

If the image src is pointing to a valid img, the OnInit will not run.
this is cause using Response.Rewrite
 
Ad

Advertisements


Top