473,581 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reload Problem

Hi, I'm new to ASP.NET. If the web page is running in server-side, how
can I reload the particular section of the web page instead of the whole
page? Say, I've separated the web page into several frames and I want to
reload one of the frames without reload the whole page. How can I do
this? Shall I use client-side program? Thanks in millions
Jul 28 '06 #1
3 1196
web pages are based on the principle that you make a request to a server,
and it responds with a reply. Once you have requested the page - the
results are sent to the client and there is no connection to that server.
So your page is not actually running on the server - it has ran.

So, you have two basic choices - one is to request the page and use fragment
caching so make sure that while the whole page is returned only certain
parts of it are updated, thus your response times are quicker.....or you can
look at Atlas (Ajax) and connect client side actions to server side methods,
thus avoiding a whole page round trip.

I would seriously consider not using frames unless you need to, they are
clunky and awkward to work with....but if you nede to update a frame then
you have to revert to Javascript. Lots of examples around for cross frame
scripting.

Regards

John Timney (MVP)
"ghostwolf" <cu*******@gmai l.comwrote in message
news:eJ******** ******@TK2MSFTN GP03.phx.gbl...
Hi, I'm new to ASP.NET. If the web page is running in server-side, how
can I reload the particular section of the web page instead of the whole
page? Say, I've separated the web page into several frames and I want to
reload one of the frames without reload the whole page. How can I do
this? Shall I use client-side program? Thanks in millions

Jul 28 '06 #2
Yes, and which choice is easier for me to implement? Does VS.NET 2005
support "fragment caching" or "AJAX"? Thanks in advance.

John Timney (MVP) wrote:
web pages are based on the principle that you make a request to a server,
and it responds with a reply. Once you have requested the page - the
results are sent to the client and there is no connection to that server.
So your page is not actually running on the server - it has ran.

So, you have two basic choices - one is to request the page and use fragment
caching so make sure that while the whole page is returned only certain
parts of it are updated, thus your response times are quicker.....or you can
look at Atlas (Ajax) and connect client side actions to server side methods,
thus avoiding a whole page round trip.

I would seriously consider not using frames unless you need to, they are
clunky and awkward to work with....but if you nede to update a frame then
you have to revert to Javascript. Lots of examples around for cross frame
scripting.

Regards

John Timney (MVP)
"ghostwolf" <cu*******@gmai l.comwrote in message
news:eJ******** ******@TK2MSFTN GP03.phx.gbl...
>Hi, I'm new to ASP.NET. If the web page is running in server-side, how
can I reload the particular section of the web page instead of the whole
page? Say, I've separated the web page into several frames and I want to
reload one of the frames without reload the whole page. How can I do
this? Shall I use client-side program? Thanks in millions

Jul 28 '06 #3
it supports both, and many more approaches to caching and performance
techniques. AJAX is probably for more experienced developers but you can
read up on caching here:

http://www.devx.com/dotnet/Article/27327

Regards

John Timney (MVP)
"ghostwolf" <cu*******@gmai l.comwrote in message
news:%2******** **********@TK2M SFTNGP05.phx.gb l...
Yes, and which choice is easier for me to implement? Does VS.NET 2005
support "fragment caching" or "AJAX"? Thanks in advance.

John Timney (MVP) wrote:
>web pages are based on the principle that you make a request to a server,
and it responds with a reply. Once you have requested the page - the
results are sent to the client and there is no connection to that server.
So your page is not actually running on the server - it has ran.

So, you have two basic choices - one is to request the page and use
fragment
caching so make sure that while the whole page is returned only certain
parts of it are updated, thus your response times are quicker.....or you
can
look at Atlas (Ajax) and connect client side actions to server side
methods,
thus avoiding a whole page round trip.

I would seriously consider not using frames unless you need to, they are
clunky and awkward to work with....but if you nede to update a frame then
you have to revert to Javascript. Lots of examples around for cross
frame
scripting.

Regards

John Timney (MVP)
"ghostwolf" <cu*******@gmai l.comwrote in message
news:eJ******* *******@TK2MSFT NGP03.phx.gbl.. .
>>Hi, I'm new to ASP.NET. If the web page is running in server-side, how
can I reload the particular section of the web page instead of the whole
page? Say, I've separated the web page into several frames and I want to
reload one of the frames without reload the whole page. How can I do
this? Shall I use client-side program? Thanks in millions


Jul 28 '06 #4

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

Similar topics

66
3867
by: Ellinghaus, Lance | last post by:
> > Other surprises: Deprecating reload() >Reload doesn't work the way most people think >it does: if you've got any references to the old module, >they stay around. They aren't replaced. >It was a good idea, but the implementation simply >doesn't do what the idea promises. I agree that it does not really work as most people think it...
1
4793
by: zdhiu | last post by:
Hi javascript gurus, I have a simple html file (simple.html) with javascript. In html page there is sentence from variable defined in .js file (myFirst.js). Once I reload another .js file (mySecond.js), the value defined in the second one is NOT reloaded into html page. Please help out what's wrong in my code. BTW, I use IE6.0
3
4571
by: sentinel | last post by:
Hi all, I'm trying to reload a frame from a pop-up, but really cannot figure this out. Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the following code from an external javascript source file, dynamically created with PHP document.write('<a href="javascript:void(0);"
19
31033
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). The problem is that after the reload, it brings you right to the top of the page. When I click 'refresh" on the original page, it brings me back to...
4
2511
by: N. Demos | last post by:
Hello, I'm learning ASP.NET, and am having a strange problem with some example code from the book I'm using. The code increments and displays the value stored in a session variable when the "Add" button is clicked. In addition, the session variable is reset to zero when the "Empty" button is pressed. The problem is if the value is non-zero...
6
6660
by: Stefan Mueller | last post by:
After my web page has been loaded I'm doing some tests with a JavaScript. If I figure out that something is wrong I'd like to reload the whole frameset. With Internet Explorer and Mozilla Firefox I can reload the whole frameset with parent.location.href = "index.html"; However, this doesn't work with Opera. Does someone know how to do...
9
5433
by: permanent.tourist | last post by:
I'm having a hell of a job getting this to work in Safari: the only thing I can think of is that one can't use reload() across to another frame for security reasons. Does anyone have a concrete answer or solution for this? I'm trying to do this: top.frames.location.reload(); Thanks Mark Howells www.permanenttourist.ch
0
1348
by: androusm | last post by:
Hi all, I have a problem with reload my servlet with tomcat 5.0.27 My servlet is the one example of the struts "struts-example". I also make changes and want to reload it by tomcat 5.0.27. So I tried it with ant and I 've following relevant entrys in the build.xml file : <project name="My Project" default="compile" basedir=".">
4
2198
by: Patrick C | last post by:
Someone suggested I use reload when trying to reopen a script i've written (the suggestion was made in response to the problem ive reposted below) however when i do reload(modolename) i only get this... >>> reload(eps) <module 'eps' from 'eps.pyc'> i know this is incredibly amateur to say, but the person who suggested it had their reload...
0
1893
by: Rafe | last post by:
Hi, This seems to be an old question, and I've read back a bit, but rather than assume the answer is "you can't do that", I'd thought I'd post my version of the question along with a reproducible error to illustrate my confusion. My problem is that I'm using Python inside XSI (a 3D graphics application). If I want to restart Python, I...
0
7860
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...
0
7788
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8299
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7890
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...
0
8166
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5667
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...
0
3799
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...
0
3813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1127
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.