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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top