473,771 Members | 2,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server Side code withoout page refresh

Is it possible if I can call server side code without the page
refreshing?

Thanks,

Sean

Feb 24 '06 #1
5 1461
Short answer : no, if it's a postback.
On the first call, yes, of course.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espańol : http://asp.net.do/foros/
=============== =============== =====
<se*****@gmail. com> wrote in message news:11******** **************@ v46g2000cwv.goo glegroups.com.. .
Is it possible if I can call server side code without the page
refreshing?

Thanks,

Sean

Feb 24 '06 #2
yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a
very simple (feature wise) implementation for IE.

-- bruce (sqlwork.com)
<se*****@gmail. com> wrote in message
news:11******** **************@ v46g2000cwv.goo glegroups.com.. .
Is it possible if I can call server side code without the page
refreshing?

Thanks,

Sean

Feb 24 '06 #3
Yes.
You can use Remote Scripting callbacks (often now referred to as "AJAX").
This normally involves using XmlHttp from the client - side page DOM to make
a call into the server-side page and call a method on it, returning the
results as either javascript, JSON, or HTML which is used to update the DOM
at the client.

The new Atlas Framework does this for ASP.NET 2.0. You could also look at
Anthem.Net and MagicAJax.net over on Sourceforge.net if you are interested in
using a whole "framework" for this type of operation.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"se*****@gmail. com" wrote:
Is it possible if I can call server side code without the page
refreshing?

Thanks,

Sean

Feb 24 '06 #4
Here you can find a comparison of AJAX frameworks, that allow page
updates with AJAX without reloading the whole page:
http://www.daniel-zeiss.de/AJAXComparison/Results.htm

Some frameworks allow roundtrips with ASP.NET server events without
updating any page content.

Feb 25 '06 #5
re:
Is it possible if I can call server side code without the page refreshing? yes. the techinque is call AJAX.


Sure, although you're still posting back...just not the whole page.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espańol : http://asp.net.do/foros/
=============== =============== =====
"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:e9******** ******@TK2MSFTN GP10.phx.gbl... yes. the techinque is call AJAX. google for toolkits. also asp.net 2.0 has a very simple (feature
wise) implementation for IE.

-- bruce (sqlwork.com) <se*****@gmail. com> wrote in message news:11******** **************@ v46g2000cwv.goo glegroups.com.. .
Is it possible if I can call server side code without the page
refreshing?

Thanks,

Sean

Feb 25 '06 #6

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

Similar topics

21
1815
by: Agoston Bejo | last post by:
Hi, I would like to achieve the equivalent of META REFRESH but without the HTML meta refresh and without JavaScript. In other words, on server side I would like to wait some seconds, then redirect the page. Is there any way to do this?
12
6564
by: Russ | last post by:
I'm interested in setting up a web page where live data can be displayed in real-time on the web page. For example: I would like to display a (nice looking) graph of some data value versus time and have the graph update every second without the user having to do anything like hit a refresh button. The data to plot is readily available from an application running on the server - I can expose it in whatever way is needed (currently easily...
4
6237
by: Jim Hammond | last post by:
After much effort, it doesn't seem possible to redirect the user to a new page after 10 seconds by using a server-side timer. I am now using the following meta statement to accomplish the same thing: <META HTTP-EQUIV="refresh" content="10;URL=Form_Welcome.aspx"> This seems to work fine, but I now have three concerns because I thought it was supposed to be possible to do everything in C#. 1. Note that Visual Studio lets the developer...
1
2314
by: Alin Capitanescu | last post by:
Hi all! I need some help with asp.net! Is there any way to make the client BROWSER (IE, NETSCAPE, OPERA etc) to wait for messages from a http/https host (server) in an internet environment? The main idea is not to refresh the client page or a component at a moment of time, but to make the server push some messages to client when changes are made into database.... Refreshing the page every x seconds/minutes makes
3
1853
by: Patrick | last post by:
Gang I have an ASP.NET page with a series of datagrids on in it. I also have an html button control (on the same page) that runs client side script to display a modal dialog box (window.showModalDialog) . when this modal dialog returns, i want a couple of datagrids on the page to refresh their contents. does anyone know a good way to handle this?
1
2970
by: Jaco Bregman | last post by:
Hi all, I'm looking for a way to inform clients of a server side event on my website. What I want to do is to update a user's webpage when a process logs in on the server. Untill now I use a refresh statement in the client's html code, and I read from the database in the Page_Load( ). On every postback database contents are read and used to keep the site up to date. What I want to do is to let the server push the updates to the clients,...
1
1613
by: Jim Bayers | last post by:
This has been driving me crazy. server.transfer doesn't set the focus to the page I transfer to so when the user does a refresh, the results aren't what's expected. I have a datagrid on one page that lists the student's guests. At the bottom of the datagrid is an 'add a new guest' button. Users click on this button an it takes them to a new page where they can add a new guest. So they type in the guest information and click on the...
3
2946
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains say “www.Test1.com” and “www.Test2.com” pointing to a single website. Website content is located onto UNCPath i.e. remote location. Domain 1: www.Test1.com points to \\servername\websitefolder\homedirectory
14
3570
by: rabbitrun | last post by:
Hi Everyone, I work for a financial company. I am planning to give a presentation to rest of the development team (15 people) here on moving server side logic to client-side javascript for an internal intranet application rewrite. This approach will definitely stir up hot debate from hardcore server-side Java folks who wants to do UI stuff even on the server!. Since I am pretty much known as the JS or UI Guy of the group, my Boss...
0
9619
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
9454
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10103
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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
8934
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...
0
6713
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3
2850
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.