Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > AJAX Works Locally in VS2005 but not on Web

Reply
Thread Tools

AJAX Works Locally in VS2005 but not on Web

 
 
schmeckel
Guest
Posts: n/a
 
      04-02-2007
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

 
Reply With Quote
 
 
 
 
Ben Rush
Guest
Posts: n/a
 
      04-02-2007
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" <> wrote in message
news: 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
>



 
Reply With Quote
 
 
 
 
schmeckel
Guest
Posts: n/a
 
      04-03-2007
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.com> wrote:
> 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.net> wrote in message
>
> news: 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 -



 
Reply With Quote
 
schmeckel
Guest
Posts: n/a
 
      04-03-2007
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.com> wrote:
> 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.net> wrote in message
>
> news: 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 -



 
Reply With Quote
 
James Irvine
Guest
Posts: n/a
 
      04-03-2007
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.com> wrote:
>> 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.net> wrote in message
>>
>> news: 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 -

>
>

 
Reply With Quote
 
OD
Guest
Posts: n/a
 
      04-03-2007
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


 
Reply With Quote
 
schmeckel
Guest
Posts: n/a
 
      04-03-2007
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 com> wrote:
> 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



 
Reply With Quote
 
kwendex@yahoo.com
Guest
Posts: n/a
 
      04-03-2007
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.net> wrote:
> 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 com> wrote:
>
> > 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



 
Reply With Quote
 
schmeckel
Guest
Posts: n/a
 
      04-04-2007
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.net> wrote:
>
>
>
> > 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 com> wrote:

>
> > > 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 -



 
Reply With Quote
 
schmeckel
Guest
Posts: n/a
 
      04-04-2007
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.net> wrote:
> 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.net> wrote:

>
> > > 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 com> wrote:

>
> > > > 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 -



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
App works locally but not on the website Mark Sandfox ASP .Net 3 02-07-2007 09:16 AM
DirectorySearcher works locally in VS2005 but not on webserver Jason Wilson ASP .Net 4 01-31-2007 04:17 PM
Drop Down List in Details view works locally but not on remote mac =?Utf-8?B?UGF1bCBaYW5iYWth?= ASP .Net 0 04-22-2006 03:58 PM
.NET application exported from Access works locally but not on webserver. Andy ASP .Net 1 07-11-2005 02:45 PM
Validation works locally but fails on web server Mr Marsh ASP .Net 2 11-04-2003 03:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57