Page get postback twice in Mozilla!!!!

I face one problem in Mozilla but with other browser it works fine.

The problem was like... the page get called twice!!! There is case when the server side code called twice, not lient side.

After doing some good work found the solution, and was simpley good. The following line was causing the problem.

<asp:image id="imgTest" runat="Server"/>


In first look you can see there is no problem with it. But there is still problem; the missing ImageUrl. Mozilla send request to current page asking for an image, which we havent set yet; as the value get assign from server side, by this reason the only server side code is get executed twice!!!!


Interesting, isn't it!!

So here is the solution:


<asp:image id="imgTest1" runat="Server" imageurl="abc.jpg"></asp:image>

Comments

Robot2030 said…
I can't find words expressing my feelings when your solution fixed my website bug...

thank you so much and i hope you a wonderful life...

Popular posts from this blog

Page Life Cycle in ASP.NET

Managed Code and UnManaged Code

Select nth Row from Table in SQL Server

Abstract Class and An Interface

SQL Server 2005 with XML Parameters

Print Function By JavaScript

Auto Refresh .aspx page - ASP.NET

Overview of MVC