How to show contents of a page at a once.

  • Thread starter Thread starter pappu
  • Start date Start date
P

pappu

HI I have my home page which is contaiing more than 10 images. So on
calling that page it is shwing that images one by one on tht page.But
want to show all the images & content of page at a once. I have tried
using respose.buffer & response.flush() but it is not working.
So can anybody help me out.
Sachin.
 
Pappu,
Response.Buffer etc. will not have an effect with ASP.NET as you are dealing
with a compiled, not interpreted language idiom.
Why not look into client-side javascript image "preloading" - there are
numerous examples you can find on a simple search.
Peter
 
In your <img src="..."> you need to add width and height of the image it's
going to show.
then browser will know the size upfront and will not do shifting.


Right now shifting happens because browser does not know images sizes until
it loads them. So it assumes some defaults and then adjust the screen once
image is loaded.


George.
 
you read about html. the browser reads your page, and sees references to
other pages (images). it will start a download of the images as it finds
them (but generally it will only allow 2 downloads at a time).

to do want you want, is you render all content, but style it not to
display. then in client code on pageload, make it appear.

-- bruce (sqlwork.com)
 

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

Back
Top