473,467 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AJAX Works Locally in VS2005 but not on Web

I am trying to use some very basic AJAX functionality (update panel
for partial page update) on my website. When I run my webpage in VS
2005, the partial page update works fine. However, when I upload the
page to my website and try running it, the page updates as a full page
update rather than a partial page update. I believe the web.config
I'm using is correct and I have also put the System.Web.Extensions dll
in my BIN folder.

Can anyone tell me if there is something else that has to be done in
order to get AJAX functionality to work on the web?

Any help would be appreciated.
Thanks,

Schmeckel

Apr 2 '07 #1
9 1982
I'm trying to put together a list of reasons ASP.Net AJAX seems to break on
people's sites here:
http://www.ben-rush.net/blog/PermaLi...a4fc00b&dotnet.

If any of those don't work for you, let me know and we'll work through it
(granted the list is small at the moment, but I'm just starting to jot these
things down).

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"schmeckel" <ir****@netins.netwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...
>I am trying to use some very basic AJAX functionality (update panel
for partial page update) on my website. When I run my webpage in VS
2005, the partial page update works fine. However, when I upload the
page to my website and try running it, the page updates as a full page
update rather than a partial page update. I believe the web.config
I'm using is correct and I have also put the System.Web.Extensions dll
in my BIN folder.

Can anyone tell me if there is something else that has to be done in
order to get AJAX functionality to work on the web?

Any help would be appreciated.
Thanks,

Schmeckel

Apr 2 '07 #2
Ben -

I looked at everything that was in your list and even copied you
web.config. Things are still not working on the web but are fine on
my machine.

For your information, I am just trying a VERY basic example and I
can't get it to work on the web. Here is the code for the page:

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"
EnablePartialRendering="True" />
<asp:Label ID="Label1" runat="server" Text="Label"
Width="125px"></asp:Label><div>
This is a test screen<br />
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label2" runat="server" Text="Label"
Width="125px"></asp:Label>
<asp:Button ID="Button1" runat="server"
OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>

Do you see anything stupid that would prevent it from working on the
web but allow it to work locally?

As I said before, any help would be appreciated.
Thanks again,

Schemckel

On Apr 1, 10:28 pm, "Ben Rush" <kwen...@yahoo.comwrote:
I'm trying to put together a list of reasons ASP.Net AJAX seems to break on
people's sites here:http://www.ben-rush.net/blog/PermaLi...26-5641-401b-9....

If any of those don't work for you, let me know and we'll work through it
(granted the list is small at the moment, but I'm just starting to jot these
things down).

--
~~~~~~~~~~~
Ben Rushhttp://www.ben-rush.net/blog

"schmeckel" <ira...@netins.netwrote in message

news:11**********************@d57g2000hsg.googlegr oups.com...
I am trying to use some very basic AJAX functionality (update panel
for partial page update) on my website. When I run my webpage in VS
2005, the partial page update works fine. However, when I upload the
page to my website and try running it, the page updates as a full page
update rather than a partial page update. I believe the web.config
I'm using is correct and I have also put the System.Web.Extensions dll
in my BIN folder.
Can anyone tell me if there is something else that has to be done in
order to get AJAX functionality to work on the web?
Any help would be appreciated.
Thanks,
Schmeckel- Hide quoted text -

- Show quoted text -

Apr 3 '07 #3
Ben -

I looked at everything that was in your list and even copied you
web.config. Things are still not working on the web but are fine on
my machine.
For your information, I am just trying a VERY basic example and I
can't get it to work on the web. Here is the code for the page:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"
EnablePartialRendering="True" />
<asp:Label ID="Label1" runat="server" Text="Label"
Width="125px"></asp:Label><div>
This is a test screen<br />
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label2" runat="server"
Text="Label"
Width="125px"></asp:Label>
<asp:Button ID="Button1" runat="server"
OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
Do you see anything stupid that would prevent it from working on the
web but allow it to work locally?
As I said before, any help would be appreciated.
Thanks again,

Schmeckel
On Apr 1, 10:28 pm, "Ben Rush" <kwen...@yahoo.comwrote:
I'm trying to put together a list of reasons ASP.Net AJAX seems to break on
people's sites here:http://www.ben-rush.net/blog/PermaLi...26-5641-401b-9....

If any of those don't work for you, let me know and we'll work through it
(granted the list is small at the moment, but I'm just starting to jot these
things down).

--
~~~~~~~~~~~
Ben Rushhttp://www.ben-rush.net/blog

"schmeckel" <ira...@netins.netwrote in message

news:11**********************@d57g2000hsg.googlegr oups.com...
I am trying to use some very basic AJAX functionality (update panel
for partial page update) on my website. When I run my webpage in VS
2005, the partial page update works fine. However, when I upload the
page to my website and try running it, the page updates as a full page
update rather than a partial page update. I believe the web.config
I'm using is correct and I have also put the System.Web.Extensions dll
in my BIN folder.
Can anyone tell me if there is something else that has to be done in
order to get AJAX functionality to work on the web?
Any help would be appreciated.
Thanks,
Schmeckel- Hide quoted text -

- Show quoted text -

Apr 3 '07 #4
Your partial page update seems to work ok on my test site:

http://www.mypichost.biz/aTest.aspx

It's your code verbatim, except I added a datetime check just to see
whats being updated:

protected void Button1_Click(object sender, EventArgs e)
{
Label2.Text = DateTime.Now.ToString();
}


schmeckel wrote:
Ben -

I looked at everything that was in your list and even copied you
web.config. Things are still not working on the web but are fine on
my machine.
For your information, I am just trying a VERY basic example and I
can't get it to work on the web. Here is the code for the page:
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"
EnablePartialRendering="True" />
<asp:Label ID="Label1" runat="server" Text="Label"
Width="125px"></asp:Label><div>
This is a test screen<br />
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label2" runat="server"
Text="Label"
Width="125px"></asp:Label>
<asp:Button ID="Button1" runat="server"
OnClick="Button1_Click" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>
Do you see anything stupid that would prevent it from working on the
web but allow it to work locally?
As I said before, any help would be appreciated.
Thanks again,

Schmeckel
On Apr 1, 10:28 pm, "Ben Rush" <kwen...@yahoo.comwrote:
>I'm trying to put together a list of reasons ASP.Net AJAX seems to break on
people's sites here:http://www.ben-rush.net/blog/PermaLi...26-5641-401b-9....

If any of those don't work for you, let me know and we'll work through it
(granted the list is small at the moment, but I'm just starting to jot these
things down).

--
~~~~~~~~~~~
Ben Rushhttp://www.ben-rush.net/blog

"schmeckel" <ira...@netins.netwrote in message

news:11**********************@d57g2000hsg.googleg roups.com...
>>I am trying to use some very basic AJAX functionality (update panel
for partial page update) on my website. When I run my webpage in VS
2005, the partial page update works fine. However, when I upload the
page to my website and try running it, the page updates as a full page
update rather than a partial page update. I believe the web.config
I'm using is correct and I have also put the System.Web.Extensions dll
in my BIN folder.
Can anyone tell me if there is something else that has to be done in
order to get AJAX functionality to work on the web?
Any help would be appreciated.
Thanks,
Schmeckel- Hide quoted text -
- Show quoted text -

Apr 3 '07 #5
OD
do not forget your host must install a part of MS Ajax on his server,
something you can't do for him.
It's perhaps the reason.

--
OD___
www.e-naxos.com
Apr 3 '07 #6
I have my own hosting account, so I just need to know what files have
to be installed. The only dll I've put on my server is the
System.Web.Extenstions. Is there something else that I'm missing?

Thanks again for all of the help!

Schmeckel
On Apr 3, 11:57 am, OD <webmaster @ e-naxos dot comwrote:
do not forget your host must install a part of MS Ajax on his server,
something you can't do for him.
It's perhaps the reason.

--

OD___www.e-naxos.com

Apr 3 '07 #7
If you follow the link I posted earlier you'll see there that i give a
link to the installer you must run on the server.
On Apr 3, 12:14 pm, "schmeckel" <ira...@netins.netwrote:
I have my own hosting account, so I just need to know what files have
to be installed. The only dll I've put on my server is the
System.Web.Extenstions. Is there something else that I'm missing?

Thanks again for all of the help!

Schmeckel

On Apr 3, 11:57 am, OD <webmaster @ e-naxos dot comwrote:
do not forget your host must install a part of MS Ajax on his server,
something you can't do for him.
It's perhaps the reason.
--
OD___www.e-naxos.com

Apr 3 '07 #8
First of all, I need to make a clarification. I have a shared hosting
account, not a dedicated account so I don't believe I am able to run
the install that Ben is talking about. I think my problem is that my
account is with Godaddy and I don't think they know what has to be
setup to make things work. I spent 30 minutes on the phone with
someone who was pretty clueless and ended the conversation no further
along than when I started. According to their documentation, they
have installed the System.Web.Extensions dll in the GAC so that
shouldn't be the problem. If there is something else that has to be
done, they don't know about it. If anyone out there has gotten AJAX
to work on a Godaddy site, your help would be greatly appreciated.

Thanks to all of you who have helped so far.
Schmeckel

On Apr 3, 4:43 pm, kwen...@yahoo.com wrote:
If you follow the link I posted earlier you'll see there that i give a
link to the installer you must run on the server.

On Apr 3, 12:14 pm, "schmeckel" <ira...@netins.netwrote:
I have my own hosting account, so I just need to know what files have
to be installed. The only dll I've put on my server is the
System.Web.Extenstions. Is there something else that I'm missing?
Thanks again for all of the help!
Schmeckel
On Apr 3, 11:57 am, OD <webmaster @ e-naxos dot comwrote:
do not forget your host must install a part of MS Ajax on his server,
something you can't do for him.
It's perhaps the reason.
--
OD___www.e-naxos.com- Hide quoted text -

- Show quoted text -

Apr 4 '07 #9
I got it figured out. In the testing that I was doing, I was using a
subdirectory as a test site. For example, if my site was www.schmeckel.net,
I was using www.schmeckel.net/ajaxtest as the place I was putting my
code AND my web.config. After messing around with it for a while, I
moved the web.config in the www.schmeckel.net directory and everything
worked fine.

Thanks again to everyone who helped out!!!
Schmeckel

On Apr 3, 9:19 pm, "schmeckel" <ira...@netins.netwrote:
First of all, I need to make a clarification. I have a shared hosting
account, not a dedicated account so I don't believe I am able to run
the install that Ben is talking about. I think my problem is that my
account is with Godaddy and I don't think they know what has to be
setup to make things work. I spent 30 minutes on the phone with
someone who was pretty clueless and ended the conversation no further
along than when I started. According to their documentation, they
have installed the System.Web.Extensions dll in the GAC so that
shouldn't be the problem. If there is something else that has to be
done, they don't know about it. If anyone out there has gotten AJAX
to work on a Godaddy site, your help would be greatly appreciated.

Thanks to all of you who have helped so far.

Schmeckel

On Apr 3, 4:43 pm, kwen...@yahoo.com wrote:
If you follow the link I posted earlier you'll see there that i give a
link to the installer you must run on the server.
On Apr 3, 12:14 pm, "schmeckel" <ira...@netins.netwrote:
I have my own hosting account, so I just need to know what files have
to be installed. The only dll I've put on my server is the
System.Web.Extenstions. Is there something else that I'm missing?
Thanks again for all of the help!
Schmeckel
On Apr 3, 11:57 am, OD <webmaster @ e-naxos dot comwrote:
do not forget your host must install a part of MS Ajax on his server,
something you can't do for him.
It's perhaps the reason.
--
OD___www.e-naxos.com-Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

Apr 4 '07 #10

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

Similar topics

5
by: geekboy0001 | last post by:
Just trying to get some opinions out there... There are tons of Ajax libraries out there... Ajax.NET Professional, ComfortASP.NET, ZumiPage, etc. etc... Microsoft has their own too, Atlas. I've...
2
by: nick | last post by:
Hi I have a web form sitting inside a desktop application written in Delphi (rendered by its browser component based on IE engine). The form runs in 2 modes: - live mode: all data freshly...
3
by: David Prentice | last post by:
I am having dificulty debugging an ASP.NET Ajax (Novemver CTP) app on windows vista RTM. I have found the following interesting facts but cannot join the dots . . If my application is...
2
by: verci | last post by:
Hi guys, I'm running VS2005, AP.net 2.0, Windows XP SP2 Ok this maybe a dumb question but here it goes, as a newbie I've just finished my first AJAX enable page, everything works great but,...
10
by: rbenditt | last post by:
I've put together a simple script that uses the XMLHttpRequest() function. It works when I run it locally, but when I upload it to my web hosting account, I never get a response back. Here is what I...
0
by: jrnail23 | last post by:
I have a user control which contains an UpdatePanel, which contains a MultiView inside, with a GridView in one of the views. In my GridView, I have a ButtonField which is supposed to trigger a...
2
by: Joe Stateson | last post by:
I added ajax to an existing web project. It runs fine but hitting F5 (debug) in Visual Studio 2005 slowly consumes resources: Kernel Memory and System Cache grow and I start seeing "Loading...
2
by: Cirene | last post by:
3 quick questions... 1. Are the controls in the AJAX Futures download "beta" or the release and stable version? 2. Also, where is the best way to learn how to implement these? (Other than by...
5
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...
0
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...
0
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...
0
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 ...

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.