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

MVC Request Execution Stages - Life Cycle

LINQ to XML : XElement and XAttribute

Parsing the comma separated values into a temporary table

How to Edit More than 200 Rows in SQL Server 2008

Page Life Cycle in ASP.NET

Auto Refresh .aspx page - ASP.NET

ASP.NET MVC Version History

AdRotator control in ASP.Net