473,657 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(includin g 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 1710
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****@mailcit y.com> wrote in message
news:ba******** *************** ***@posting.goo gle.com...
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(includin g 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(lik e 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.Thank s once again.
Nov 18 '05 #3

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

Similar topics

8
3757
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 .NET. This is an easy thing to do in VB6.
23
12265
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 saved on another computer that I can't get to right now), and I can't remember what search parameters I used to find it when I googled the topic. Can anyone point me the right direction? I'd like to use a method that would be accessible to the...
5
11084
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 have tried lot's of things and spent hours on this, I thought I might give it a try here. One of the TD's uses HTML to set the background, the other one uses CSS styling:
6
22122
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 I want to know how can I have the mousedown and mouseup buttons events. I think that I have to do this in JavaScript. Can you help me on this?
8
9264
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 is resized. It's the resizing part that I am having trouble with. I've seen a few old posts that point in the right direction but nothing simple. I wondered if they has been any new ideas I have missed.
1
1436
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 Sub Page_Load(ByVal ..)
4
2277
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, but the customer is absolutely adamant about using the image. I'm afraid that this large image will degrade performance if it's loaded for each page. Can I somehow use ASP.NET caching to cache the background image so it doesn't have to...
3
4023
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 designs--coming from the graphics design people--that call for ever increasing numbers of repeat-x or repeat-y sliver-gradients as div backgrounds. Does each such background image require a separate GET to the server?
4
5742
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 answer: How do I stretch the static image? The Style property builder for a table cell lets me specify the background image location, tiling, scrolling, and position. But I can't find any obvious way to tell it to stretch the image
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.