473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I found a bug in the framework 3.5

-------------------------------------
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5
Installed Edition: Professional
-------------------------------------

Unless someone @Microsoft tells me "this behavior is by design":

Just put an asp:Image tag without an ImageUrl attribute on a blank page of a
new project and be prepared for a mighty double postback... Plus, your
buttons handles might be screwed.

Spent too much time on this one... on a thight deadline :(

(What's annoying is that I followed a code example for the Collapse Panel
extender on the ASP.net website)

Mike
Jul 30 '08 #1
2 1017
It's not a ASP.NET bug, it's how browser works....
if you do not put ImageUrl then ASP.NET generates following HTML.

<img src="">
Browser trying to resolve the image path and resolves it to the same url as
your aspx page. And then it requests an image. Hence you get second request
for the page....

PS: I recall only IE does that. FireFox does not resolve the empty src to
the page URL (or may be it's only FireFox does and IE does not).

PPS: As far as i know all versions of ASP.NET do that. Not only 3.5

George.
"Mike Gleason jr Couturier" <no****@invalidhost.comwrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
-------------------------------------
Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5
Installed Edition: Professional
-------------------------------------

Unless someone @Microsoft tells me "this behavior is by design":

Just put an asp:Image tag without an ImageUrl attribute on a blank page of
a new project and be prepared for a mighty double postback... Plus, your
buttons handles might be screwed.

Spent too much time on this one... on a thight deadline :(

(What's annoying is that I followed a code example for the Collapse Panel
extender on the ASP.net website)

Mike
Jul 30 '08 #2

"George" <no*****@comcast.netwrote in message
news:uM**************@TK2MSFTNGP02.phx.gbl...
It's not a ASP.NET bug, it's how browser works....
if you do not put ImageUrl then ASP.NET generates following HTML.

<img src="">
Browser trying to resolve the image path and resolves it to the same url
as your aspx page. And then it requests an image. Hence you get second
request for the page....

PS: I recall only IE does that. FireFox does not resolve the empty src to
the page URL (or may be it's only FireFox does and IE does not).

PPS: As far as i know all versions of ASP.NET do that. Not only 3.5

That makes sense.... in fact, this behavior IS by design :D
Codeplex should take this in account in their examples :)

Thanks for your clear explanations!!

Mike
Jul 30 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: KLomax | last post by:
I have a VB6 com object that uses ADO 2.1 for data access. I have referenced this object in a aspx application. It works fine on my local development machine. On our staging server, it errors when...
3
by: Michael Bøcker-Larsen | last post by:
Hi I'v been stuck on this problem for ages now. I have found that I'm not the only one with this problem, by looking through the different newsgroups. Hope you can help me! I know there is a...
2
by: aallee83 | last post by:
i'm new in asp.net after develop my solution i copied it on the server where I want it to run but something cares... WHAT?!?! thank you in advance File or assembly name System, or one of its...
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
6
by: Nick Horrocks | last post by:
I have set up a custom error page for 404 errors. However the HTTP status code returned is 302 followed by 200, this causes search engines not to remove old pages from their index. How can I...
3
by: Web Team | last post by:
Hi All, I recently moved our assembly which stores our 'common' code into the GAC. I then moved all copies of this assembly out of the /bin folders, restarted IIS. I get the error below. This...
3
by: Ben | last post by:
Hi there, We have a asp.net application working fine till a patch is applied to the machine. Now it encounter error 404 page not found, although the page is there. Has anyone come across this...
14
by: NormD | last post by:
We have a client-server app using Web Services on an IIS machine. The trace below shows that .NET is searching around for some things (e.g., SystemDrawing.DLL and System.Drawing.EXE) and taking a...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.