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

AJAX problems

Hey,
I have a master.page and a Default.aspx page. I'm trying to use AJAX
to postback to the server. However, when I place the
<asp:ScriptManager ...tag on the Default.aspx page I get an "Element
'ScriptManager' is not a known element. This can occur if there is a
compilation error on the Web site." on the mouse-over.

What is the prblem here? Am I missing something?

Thanks
Steve

Apr 25 '07 #1
3 1482
It sounds as if you're using an existing web and haven't made the changes in
your web.config file that are necessary.

If you create a new asp.net ajax project you'll see some additional items in
it's web.config that you'll need to put in any application that you need.
Add the following to your web.config

<httpHandlers>

<add verb="GET,HEAD" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
validate="false" />

</httpHandlers>

<httpModules>

<add name="ScriptModule" type="System.Web.Handlers.ScriptModule,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />

</httpModules>
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11**********************@r30g2000prh.googlegr oups.com...
Hey,
I have a master.page and a Default.aspx page. I'm trying to use AJAX
to postback to the server. However, when I place the
<asp:ScriptManager ...tag on the Default.aspx page I get an "Element
'ScriptManager' is not a known element. This can occur if there is a
compilation error on the Web site." on the mouse-over.

What is the prblem here? Am I missing something?

Thanks
Steve

Apr 25 '07 #2
Did you make an AJAX website, or simply add AJAX to an existing website.
There are some registration tags for the web.config that are mandatory for
using AJAX in an ASP.NET site.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
"Steve Kershaw" <st***********@yahoo.comwrote in message
news:11**********************@r30g2000prh.googlegr oups.com...
Hey,
I have a master.page and a Default.aspx page. I'm trying to use AJAX
to postback to the server. However, when I place the
<asp:ScriptManager ...tag on the Default.aspx page I get an "Element
'ScriptManager' is not a known element. This can occur if there is a
compilation error on the Web site." on the mouse-over.

What is the prblem here? Am I missing something?

Thanks
Steve
Apr 25 '07 #3
On Apr 25, 11:25 pm, Steve Kershaw <steve_kers...@yahoo.comwrote:
Hey,
I have a master.page and a Default.aspx page. I'm trying to use AJAX
to postback to the server. However, when I place the
<asp:ScriptManager ...tag on the Default.aspx page I get an "Element
'ScriptManager' is not a known element. This can occur if there is a
compilation error on the Web site." on the mouse-over.

What is the prblem here? Am I missing something?

Thanks
Steve
In webconfig
<location path="ScriptResource.axd">
<!--Allow acces to ajax scripts-->
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<system.web>
<!--Ajax Handlers-->
<httpHandlers>
<add verb="GET" path="ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler" validate="false"/>
</httpHandlers>

Best regards,
Oscar Acosta

Apr 27 '07 #4

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

Similar topics

11
by: Yarco | last post by:
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
8
by: needin4mation | last post by:
I understand this is a asp.net group, but thought I would post this here for comments. I admit I have used this post in another group, but it has less traffic. Here's to hoping I'm just blind to...
11
by: John Smith | last post by:
I am using Ajax to refresh a DIV area by setting the innerHTML=request.responseText in the usual manner. in the response text I have a <SCRIPT> tag in line, but this is not executed. Is there a way...
0
by: melledge | last post by:
Ajax Developers' Day added to XTech 2006 agenda XTech 2006 - 17-19 May - Hotel Grand Krasnopolsky - Amsterdam, The Netherlands
10
by: Steve | last post by:
I need to build a very dynamic client and would be interested in knowing the pros and cons of using JSF and Ajax to accomplish this. Thanks. Steve
0
by: melledge | last post by:
Ajax Developers' Day to Kick Off XTech 2006 Conference Industry experts offer insight into next generation of the Web ALEXANDRIA, VIRGINIA, USA - April 25, 2006 - In response to the rapidly...
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
3
by: =?Utf-8?B?bWNpbWFnaW5n?= | last post by:
We have recently applied AJAX to our web site, nothing particularly fancy, just some update panel, progress images and collapsible panels, just the basics to improve the user experience. The...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.