473,725 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems using masterpages in ASP.NET AJAX 1.0 Beta

Hello,

I have created some pages in the (old) Atlas pages and migrated to AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.

Thanks in advantage.

Greetings,

René Beltman

Nov 2 '06 #1
9 2141
Did you install Atlas software which will gives you dll
Microsoft.Web.A tlas.dll, and you have to refer the same in your solution.

"RBM007" wrote:
Hello,

I have created some pages in the (old) Atlas pages and migrated to AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.

Thanks in advantage.

Greetings,

René Beltman

Nov 2 '06 #2
I have uninstalled Atlas on my system, deleted the atlas dll and
installed AJAX. The AJAX dll is referenced with the add reference
button.

I have tried to translate the page to the AJAX standard.

The problem also occures if I try to create a new project / solution
with masterpages.

Greetings,

René

Umeshnath wrote:
Did you install Atlas software which will gives you dll
Microsoft.Web.A tlas.dll, and you have to refer the same in your solution.

"RBM007" wrote:
Hello,

I have created some pages in the (old) Atlas pages and migrated to AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.

Thanks in advantage.

Greetings,

René Beltman
Nov 2 '06 #3
Hi ,
You have to add a Content place holder in your Master page. In the page you
are calling to master page you have to remove html tags and add the below code

<%@ Page Language="C#" AutoEventWireup ="true"
MasterPageFile= "~/MasterPage.mast er" CodeFile="X.asp x.cs"
Inherits="Creat ePallet" %>

<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">

Her you can add table etc
but remove html , head, body tags it wil work

</asp:Content>

"RBM007" wrote:
I have uninstalled Atlas on my system, deleted the atlas dll and
installed AJAX. The AJAX dll is referenced with the add reference
button.

I have tried to translate the page to the AJAX standard.

The problem also occures if I try to create a new project / solution
with masterpages.

Greetings,

René

Umeshnath wrote:
Did you install Atlas software which will gives you dll
Microsoft.Web.A tlas.dll, and you have to refer the same in your solution.

"RBM007" wrote:
Hello,
>
I have created some pages in the (old) Atlas pages and migrated to AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.
>
Thanks in advantage.
>
Greetings,
>
René Beltman
>
>

Nov 2 '06 #4
Thanks, but I already knows that. My problem is that the following code
will not compile.

<%@ Page Language="C#" MasterPageFile= "~/MasterPage.mast er"
AutoEventWireup ="true" CodeFile="Defau lt2.aspx.cs" Inherits="Defau lt2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">
<asp:ScriptMana ger ID="ScriptManag er" runat="server">
</asp:ScriptManag er>
</asp:Content>

The master page contains the next code:

<%@ Master Language="C#" AutoEventWireup ="true"
CodeFile="Maste rPage.master.cs " Inherits="Maste rPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:contentpla ceholder id="ContentPlac eHolder1"
runat="server">
</asp:contentplac eholder>
</div>
</form>
</body>
</html>

And now the suprise, the next code compiles succesfully.

<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Defau lt.aspx.cs" Inherits="_Defa ult" %>

<!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>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptMana ger ID="ScriptManag er1" runat="server">
</asp:ScriptManag er>
</form>
</body>
</html>

Can someone explain me why the above code is not working?
Thanks in advantage.

Greetings,

René

Umeshnath wrote:
Hi ,
You have to add a Content place holder in your Master page. In the page you
are calling to master page you have to remove html tags and add the belowcode

<%@ Page Language="C#" AutoEventWireup ="true"
MasterPageFile= "~/MasterPage.mast er" CodeFile="X.asp x.cs"
Inherits="Creat ePallet" %>

<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">

Her you can add table etc
but remove html , head, body tags it wil work

</asp:Content>

"RBM007" wrote:
I have uninstalled Atlas on my system, deleted the atlas dll and
installed AJAX. The AJAX dll is referenced with the add reference
button.

I have tried to translate the page to the AJAX standard.

The problem also occures if I try to create a new project / solution
with masterpages.

Greetings,

René

Umeshnath wrote:
Did you install Atlas software which will gives you dll
Microsoft.Web.A tlas.dll, and you have to refer the same in your solution.
>
"RBM007" wrote:
>
Hello,

I have created some pages in the (old) Atlas pages and migrated to AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.

Thanks in advantage.

Greetings,

René Beltman
Nov 2 '06 #5
Yes, it will not work as asp doesn't have a tag ScriptManager. This tag
belongs to Atlas. You will have to change your code like below.

<atlas:ScriptMa nager ID="ScriptManag er" runat="server" />
"RBM007" wrote:
Thanks, but I already knows that. My problem is that the following code
will not compile.

<%@ Page Language="C#" MasterPageFile= "~/MasterPage.mast er"
AutoEventWireup ="true" CodeFile="Defau lt2.aspx.cs" Inherits="Defau lt2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">
<asp:ScriptMana ger ID="ScriptManag er" runat="server">
</asp:ScriptManag er>
</asp:Content>

The master page contains the next code:

<%@ Master Language="C#" AutoEventWireup ="true"
CodeFile="Maste rPage.master.cs " Inherits="Maste rPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:contentpla ceholder id="ContentPlac eHolder1"
runat="server">
</asp:contentplac eholder>
</div>
</form>
</body>
</html>

And now the suprise, the next code compiles succesfully.

<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Defau lt.aspx.cs" Inherits="_Defa ult" %>

<!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>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptMana ger ID="ScriptManag er1" runat="server">
</asp:ScriptManag er>
</form>
</body>
</html>

Can someone explain me why the above code is not working?
Thanks in advantage.

Greetings,

René

Umeshnath wrote:
Hi ,
You have to add a Content place holder in your Master page. In the page you
are calling to master page you have to remove html tags and add the below code

<%@ Page Language="C#" AutoEventWireup ="true"
MasterPageFile= "~/MasterPage.mast er" CodeFile="X.asp x.cs"
Inherits="Creat ePallet" %>

<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">

Her you can add table etc
but remove html , head, body tags it wil work

</asp:Content>

"RBM007" wrote:
I have uninstalled Atlas on my system, deleted the atlas dll and
installed AJAX. The AJAX dll is referenced with the add reference
button.
>
I have tried to translate the page to the AJAX standard.
>
The problem also occures if I try to create a new project / solution
with masterpages.
>
Greetings,
>
René
>
Umeshnath wrote:
>
Did you install Atlas software which will gives you dll
Microsoft.Web.A tlas.dll, and you have to refer the same in your solution.

"RBM007" wrote:

Hello,
>
I have created some pages in the (old) Atlas pages and migrated to AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.
>
Thanks in advantage.
>
Greetings,
>
René Beltman
>
>
>
>

Nov 3 '06 #6
The tag changed since Microsoft released ASP.NET AJAX 1.0 Beta. If I am
wrong, please explain me why the third codeblock (without a masterpage)
will compile using the same tags.

Greetings,

René

Umeshnath wrote:
Yes, it will not work as asp doesn't have a tag ScriptManager. This tag
belongs to Atlas. You will have to change your code like below.

<atlas:ScriptMa nager ID="ScriptManag er" runat="server" />
"RBM007" wrote:
Thanks, but I already knows that. My problem is that the following code
will not compile.

<%@ Page Language="C#" MasterPageFile= "~/MasterPage.mast er"
AutoEventWireup ="true" CodeFile="Defau lt2.aspx.cs" Inherits="Defau lt2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">
<asp:ScriptMana ger ID="ScriptManag er" runat="server">
</asp:ScriptManag er>
</asp:Content>

The master page contains the next code:

<%@ Master Language="C#" AutoEventWireup ="true"
CodeFile="Maste rPage.master.cs " Inherits="Maste rPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:contentpla ceholder id="ContentPlac eHolder1"
runat="server">
</asp:contentplac eholder>
</div>
</form>
</body>
</html>

And now the suprise, the next code compiles succesfully.

<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Defau lt.aspx.cs" Inherits="_Defa ult" %>

<!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>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptMana ger ID="ScriptManag er1" runat="server">
</asp:ScriptManag er>
</form>
</body>
</html>

Can someone explain me why the above code is not working?
Thanks in advantage.

Greetings,

René

Umeshnath wrote:
Hi ,
You have to add a Content place holder in your Master page. In the page you
are calling to master page you have to remove html tags and add the below code
>
<%@ Page Language="C#" AutoEventWireup ="true"
MasterPageFile= "~/MasterPage.mast er" CodeFile="X.asp x.cs"
Inherits="Creat ePallet" %>
>
<asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
Runat="Server">
>
Her you can add table etc
but remove html , head, body tags it wil work
>
</asp:Content>
>
"RBM007" wrote:
>
I have uninstalled Atlas on my system, deleted the atlas dll and
installed AJAX. The AJAX dll is referenced with the add reference
button.

I have tried to translate the page to the AJAX standard.

The problem also occures if I try to create a new project / solution
with masterpages.

Greetings,

René

Umeshnath wrote:

Did you install Atlas software which will gives you dll
Microsoft.Web.A tlas.dll, and you have to refer the same in your solution.
>
"RBM007" wrote:
>
Hello,

I have created some pages in the (old) Atlas pages and migratedto AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.

Thanks in advantage.

Greetings,

René Beltman


Nov 3 '06 #7
I'm having the same problem. I've been following an old video, and its
taken me hours to find this, but with this version it looks like the
<asp:scriptmana gertag is only available at the top level page.

In other words:

If your page is not using a mater page, then it can have the
<asp:scriptmana gertag in it. But once you decide to use a Master
Page, that master page is the ONLY place that the <asp:scriptmana ger>
tag can go.

Unless I'm wrong, but I don't think I am. Now We've got to test it to
see if it works.

Please let me know what happens.

Good Luck,
David

RBM007 wrote:
Creating new pages that contain a Master Page and ScriptManager don't work.
Nov 15 '06 #8

You are only permitted to have one <asp:ScriptMana gertag in each page.
If you have an ASP AJAX control in the master page then that is where
your script manager should go.
--
Penny
------------------------------------------------------------------------
Penny's Profile: http://forums.yourdomain.com.au/member.php?userid=179
View this thread: http://forums.yourdomain.com.au/showthread.php?t=106348

Nov 16 '06 #9
I have found the answer! The problem is that Visual Studio can not
compile pages which are closed. So if you open the master page and the
"client" page at the same time, the page is compiling agian. Attention
that I don't know what the build output is if you try to compile
commandline based.

To compile the pages, open in Visual Studio 2005 also the serverpage.

Greetings,

René

Penny wrote:
You are only permitted to have one <asp:ScriptMana gertag in each page.
If you have an ASP AJAX control in the master page then that is where
your script manager should go.
--
Penny
------------------------------------------------------------------------
Penny's Profile: http://forums.yourdomain.com.au/member.php?userid=179
View this thread: http://forums.yourdomain.com.au/showthread.php?t=106348
Nov 21 '06 #10

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

Similar topics

6
1766
by: Kenneth Keeley | last post by:
Hi, I have a Masterpage that controls the basic layout of the pages displayed on a web site. The masterpage also uses some variables. I would like to be able to access some of these variables from the content pages. Can this be done and if so how. I have made the Varibles that I wish to access Public Members. Thanks for any help. Kenneth
14
2404
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a standard ASPX page with minor modifications to it. All of my pages inherit from a "BasePage.cs" class, that handles common things like getting the user's information out of the session, determines if a page should or should not be password...
1
1467
by: MarkAurit | last post by:
Im having a masterpages meltdown. I previously did an app where the masterpage and aspx pages were in the same folder, no problems. In a second app, for esthetics, I put the masterpage in the root and the aspx pages in a /Pages folder. If I hard-code the css <LINK statement in the masterpage the classes are used as expected. However, in this app the .css (and other stuff) is in user-specific folders, so I need to perform this...
2
1209
by: K | last post by:
Hi, I have a web applicatian that used the Atlas Framework and was working fine (regardless of the bugs), but when I migrated to the Ajax ..NET Beta 1 and made the neccessary changes as described in the migration giude, I can no longer find the Ajax controls in the page. Typing "<asp:U..." doesn't show the update panel for example, and VS 2005 underlines all the Ajax controls in red. Yet the page runs totally normal. This only happens in...
0
1660
by: kingstar | last post by:
The JoyiStar AJAX WebShop development team is proud to announce the release of JoyiStar AJAX WebShop 3.0 Beta for Personal Edition. This release is a major improvement in the AJAX WebShop series, which includes a large number of new features and security enhancements. Further details and the full list of changes about this release can be found in JoyiStar AJAX WebShop 3.0 Beta for personal edition.
0
1122
by: kingstar | last post by:
The JoyiStar AJAX WebShop development team is proud to announce the release of JoyiStar AJAX WebShop 3.0 Beta for Personal Edition. This release is a major improvement in the AJAX WebShop series, which includes a large number of new features and security enhancements. Further details and the full list of changes about this release can be found in JoyiStar AJAX WebShop 3.0 Beta for personal edition.
2
1097
by: rowe_newsgroups | last post by:
All my AJAX extensions seem to now be broken after installing the beta for VS 2008. I seem to remember seeing a link for a script I need to run to fix this, but for the life of me I can't find the link. Any one know where this script is at? Thanks, Seth Rowe
2
1592
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 downloading the stuff at asp.net/ajax.) 3. When will the new version of AJAX be out? Will it be included with the Visual Studio 2008 release?
10
2139
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the Master pages as their master...) the entire page is refreshed - also the menu which belongs to the master, how can I fix it - so only the inside content will be refreshed ?
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
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...
0
9113
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
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
4519
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
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
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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.