473,378 Members | 1,099 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,378 software developers and data experts.

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 1185
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*******@gmail.comwrote in message
news:eJ**************@TK2MSFTNGP03.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*******@gmail.comwrote in message
news:eJ**************@TK2MSFTNGP03.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*******@gmail.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
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*******@gmail.comwrote in message
news:eJ**************@TK2MSFTNGP03.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
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. ...
1
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...
3
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...
19
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(). ...
4
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"...
6
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...
9
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...
0
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. ...
4
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...
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.