473,320 Members | 2,097 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,320 software developers and data experts.

way to set background image static and it doesnt load after each postback?

Hi to all.I have to solve the following problem.I have to make a
website which will be a web cache machine with the look of a real
cache machine - screen and buttons below it.So i plan the background
to be an image and when users cklick the buttons only some of the data
on the screen will change.I want to make this background image
static(including the buttons if possible because otherwise it'll be
very ugly if the buttons leave blank spaces after postback).I mean
that it shouldn be loaded after each postback(no matter whether from
the cache or downloaded from the server).What i really need is just a
small portion of information to be loaded after each postback
event.What would you advice me to do - IFrames + client scripts or
something else?
Thanks in advance.
Nov 18 '05 #1
2 1699
It depends on how much your content is going to change. If you are going to
be loading entire pages, then the easiest way is to use IFrames. If you
aren't changing much, then you might consider using client-side scripts to
fetch the content from a web service and then inject into the InnerHtml of
whatever section you want to populate. Caution here, however, as this is a
very brittle approach: if scripts are disabled your application will break,
and if you are doing XML manipulation on the client you will find
differences in support among the various browsers.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Bogosian" <bo****@mailcity.com> wrote in message
news:ba**************************@posting.google.c om...
Hi to all.I have to solve the following problem.I have to make a
website which will be a web cache machine with the look of a real
cache machine - screen and buttons below it.So i plan the background
to be an image and when users cklick the buttons only some of the data
on the screen will change.I want to make this background image
static(including the buttons if possible because otherwise it'll be
very ugly if the buttons leave blank spaces after postback).I mean
that it shouldn be loaded after each postback(no matter whether from
the cache or downloaded from the server).What i really need is just a
small portion of information to be loaded after each postback
event.What would you advice me to do - IFrames + client scripts or
something else?
Thanks in advance.

Nov 18 '05 #2
Chris,thank you very much for bothering to advice me.I have two final
questions.
It's about the background image of the page - as i said the page is a
web cache machine and my idea is the background to look like a cache
machine.So i've read somewhere that by deafault the content of a web
directory doesnt expire unless you set it to in IIS.So if I place the
background image in a separate directory on the server wont this solve
the whole problem - I mean wouldnt it look static on the client's
browser when he or she presses a postback button without getting a
blank screen for parts of the second?The other thing is that for the
purposes of the application i need the user to be in a session because
the interactions with the machine cant be standalone but one after
another and using session information to calculate the consecutive
responses.So I cant use webservices to make the requests because i
wouldnt be able to use what sessions give to me.I am asking whether i
can fetch information using some different approach - for example
after pressing the button which should do the postback stuff to run
some client-side script which to address an aspx page which will
return information(like the appropriate query string to attach to the
src property of an img element which will get the right jpeg).These
are my thoughts can you add something.Thanks once again.
Nov 18 '05 #3

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

Similar topics

8
by: Ron Holmes | last post by:
I want to place a background image on a windows form. Is there a way to prevent the image from Tiling without using an image box resized to the size of the form? I am using Visual Studio 2003...
23
by: John | last post by:
Last year, I remember finding a web page describing how to pass the name of a file to another web page, and have that web page load that image file. Now, I can't find my record of that (it was...
5
by: proximus | last post by:
Hi, I am trying to change the background of table TD's. The problem is that I have no access to the HTML code. SO I am trying to alter this using Javascript/DOM in an external .js file. I...
6
by: ruca | last post by:
Hi gurus, I have a imagebutton in my WebForm, and I want that when I click (mouse down) on her the imagebutton change image and when I "unclick" (mouse up) change to the original image. Basically...
8
by: Matt | last post by:
I've been searching around for a simple way to display a background image in my MDI form's client area. I want to be able to load the image from file on start up and have it resize as the MDI form...
1
by: Jim in Arizona | last post by:
I created a public application based variable not within any procedure, like so: Partial Class lobbytimes_lobbytimes Inherits System.Web.UI.Page Public BackgroundImage As String Protected...
4
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I'm building an ASP.NET 2.0 web-app for a customer. The customer wants a background image that's 124k in size as the background for each page. I've recommended they use a smaller-size image,...
3
by: salmobytes | last post by:
Every img tag (<img src="xxx.jpg">) in the html source represents a separate GET roundtrip between client and server, no? What about background images in css? I'm starting to see more and more...
4
by: Bob Altman | last post by:
Hi all, I posted an earlier question to the microsoft.public.inetserver.asp.general newsgroup asking how to set the background of a client-side table cell to a gradient, and I received this...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.