473,789 Members | 2,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Attribute 'OnLoadComplete ' is not a valid attribute of element 'Pa

So this one is confusing as everything works but I want this warning to go
away. This is what I have (within a .NET 2.0 Web Application, using VS.NET
2008 SP1):

default.aspx:

<%@ Page Language="C#" OnLoadComplete= "Page_LoadCompl ete" %>
<%@ Import Namespace="Syst em" %>
<%@ Import Namespace="Syst em.Web" %>
<script runat="server">
protected void Page_LoadComple te(object sender, EventArgs e)
{
// anything here..
}
</script>

...any ideas?

Thank you!
Michael

--
msdn premium subscriber
Aug 20 '08 #1
5 2910

"mpaine" <mp****@communi ty.nospamwrote in message
news:0B******** *************** ***********@mic rosoft.com...
So this one is confusing as everything works but I want this warning to go
away. This is what I have (within a .NET 2.0 Web Application, using
VS.NET
2008 SP1):

default.aspx:

<%@ Page Language="C#" OnLoadComplete= "Page_LoadCompl ete" %>
Where did you get the idea for the above attribute??

This is sufficient:-

<%@ Page Language="C#" %>

<%@ Import Namespace="Syst em" %>
<%@ Import Namespace="Syst em.Web" %>
It would be strange config if the above two namespaces were not already
present in the config, drop these imports.

<script runat="server">
protected void Page_LoadComple te(object sender, EventArgs e)
{
// anything here..
}
</script>


--
Anthony Jones - MVP ASP/ASP.NET
Aug 20 '08 #2
Thanks for Anthony's inputs.

Yes, the "OnLoadComplete " attribute should not exists in @Page directive.
Generally a typical page event registering is like below(if you use inline
server code):

=============== =============== =
<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="PageE ventTest.aspx.c s" Inherits="PageE ventTest" %>

<!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>
<script runat="server" language="C#">
protected void Page_LoadComple te(object sender, EventArgs e)
{
Response.Write( "<br/>Page_LoadCompl ete");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

=============== ==========

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/...tance&ln=en-us.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Anthony Jones" <An*@yadayadaya da.com>
References: <0B************ *************** *******@microso ft.com>
Subject: Re: Attribute 'OnLoadComplete ' is not a valid attribute of
element 'Pa
>Date: Wed, 20 Aug 2008 23:09:25 +0100
>

"mpaine" <mp****@communi ty.nospamwrote in message
news:0B******* *************** ************@mi crosoft.com...
>So this one is confusing as everything works but I want this warning to
go
>away. This is what I have (within a .NET 2.0 Web Application, using
VS.NET
>2008 SP1):

default.aspx :

<%@ Page Language="C#" OnLoadComplete= "Page_LoadCompl ete" %>

Where did you get the idea for the above attribute??

This is sufficient:-

<%@ Page Language="C#" %>

><%@ Import Namespace="Syst em" %>
<%@ Import Namespace="Syst em.Web" %>

It would be strange config if the above two namespaces were not already
present in the config, drop these imports.

><script runat="server">
protected void Page_LoadComple te(object sender, EventArgs e)
{
// anything here..
}
</script>

--
Anthony Jones - MVP ASP/ASP.NET
Aug 21 '08 #3
Hi Michael,

Have you got any progress on this issue or does the suggestion in previous
messages help you some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: st*****@online. microsoft.com (Steven Cheng [MSFT])
Organization : Microsoft
Date: Thu, 21 Aug 2008 02:41:46 GMT
Subject: Re: Attribute 'OnLoadComplete ' is not a valid attribute of
element 'Pa
>
Thanks for Anthony's inputs.

Yes, the "OnLoadComplete " attribute should not exists in @Page directive.
Generally a typical page event registering is like below(if you use inline
server code):

============== =============== ==
<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Page EventTest.aspx. cs" Inherits="PageE ventTest" %>

<!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>
<script runat="server" language="C#">
protected void Page_LoadComple te(object sender, EventArgs e)
{
Response.Write( "<br/>Page_LoadCompl ete");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

============== ===========

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microso ft.com.

============== =============== =============== ======
Get notification to my posts through email? Please refer to
Aug 25 '08 #4
it did, thanks for the help.

--
msdn premium subscriber
"Steven Cheng [MSFT]" wrote:
Hi Michael,

Have you got any progress on this issue or does the suggestion in previous
messages help you some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: st*****@online. microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Thu, 21 Aug 2008 02:41:46 GMT
Subject: Re: Attribute 'OnLoadComplete ' is not a valid attribute of
element 'Pa

Thanks for Anthony's inputs.

Yes, the "OnLoadComplete " attribute should not exists in @Page directive.
Generally a typical page event registering is like below(if you use inline
server code):

=============== =============== =
<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="PageE ventTest.aspx.c s" Inherits="PageE ventTest" %>

<!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>
<script runat="server" language="C#">
protected void Page_LoadComple te(object sender, EventArgs e)
{
Response.Write( "<br/>Page_LoadCompl ete");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

=============== ==========

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to

Aug 25 '08 #5
Thanks for your followup Michael,

If you have any further questions on this later, please feel free to post
here.

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.
--------------------
>From: =?Utf-8?B?bXBhaW5l?= <mp****@communi ty.nospam>
References: <0B************ *************** *******@microso ft.com>
<Ox************ **@TK2MSFTNGP06 .phx.gbl>
<xi************ **@TK2MSFTNGHUB 02.phx.gbl>
<U#************ **@TK2MSFTNGHUB 02.phx.gbl>
>Subject: Re: Attribute 'OnLoadComplete ' is not a valid attribute of element
Date: Mon, 25 Aug 2008 11:08:06 -0700
>
it did, thanks for the help.

--
msdn premium subscriber
"Steven Cheng [MSFT]" wrote:
>Hi Michael,

Have you got any progress on this issue or does the suggestion in
previous
>messages help you some?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
and
>suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

============== =============== =============== ======
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.
>============== =============== =============== ======
This posting is provided "AS IS" with no warranties, and confers no
rights.
>>
--------------------
>From: st*****@online. microsoft.com (Steven Cheng [MSFT])
Organization : Microsoft
Date: Thu, 21 Aug 2008 02:41:46 GMT
Subject: Re: Attribute 'OnLoadComplete ' is not a valid attribute of
element 'Pa
>
Thanks for Anthony's inputs.

Yes, the "OnLoadComplete " attribute should not exists in @Page
directive.
>Generally a typical page event registering is like below(if you use
inline
>server code):

============== =============== ==
<%@ Page Language="C#" AutoEventWireup ="true"
CodeFile="Page EventTest.aspx. cs" Inherits="PageE ventTest" %>

<!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>
<script runat="server" language="C#">
protected void Page_LoadComple te(object sender, EventArgs e)
{
Response.Write( "<br/>Page_LoadCompl ete");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

============== ===========

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
and
>suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microso ft.com.

============== =============== =============== ======
Get notification to my posts through email? Please refer to

Aug 26 '08 #6

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

Similar topics

1
1735
by: Dietmar Gräbner | last post by:
Hi Right now I'm dealing with derivation by restriction and I have some questions concerning the attribute property use in context of the derivation. Consider following Schema: <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
2878
by: piraticman | last post by:
Hi. I have some code for a javascript jump menu... It validated with HTML 4.0 but now does not validate with XHTML strict 1.0. I have used name atributes in my code which aparantly are not allowed now. I have spent all day trying to figure out a solution with no luck. I have tried document.forms and various other things but havent known exactly what to do with them and couldn't get them to work. Below I will show you my current code and...
4
21302
by: Martin Lucas-Smith | last post by:
I am wanting to know whether are XHTML1-valid characters for use within an id attribute and/or a name attribute. http://validator.w3.org/check?uri=http://www-thaihydro.geog.cam.ac.uk/riverslice/&ss=1&verbose=1 (e.g. see line 77) suggests that it is valid, but the spec suggests that it is not. More detail:
12
4952
by: Stefano | last post by:
Hi all, what is the correct use of the "default" attribute in XML Schema? For example: <xs:element name="myProperty" type="xs:string" default="myDefaultValue"/> What can I do with it? What is the meaning of < ....default="myDefaultValue" /> ?
3
8744
by: Patrick | last post by:
>Is it actually valid to have an XML document with 2 XML Elements having the same ID attribute? XML Spy seems to allow something like the following <?xml version="1.0" encoding="UTF-8"?> <FormDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Forms.xsd"> <list id="1"> <status>partially completed</status> </list>
6
2760
by: Joe | last post by:
Hello All: Does anyone know the difference between the name and id attributes in an Html control? I noticed on PostBack that I can not retrieve the Request.Form("id_value") but I can retrieve the Request.From("name_value"). TIA, -- Joe
3
2747
by: patrizio.trinchini | last post by:
Hi, how can remove sibling elements based on the value of an attribute ? For instance, gven the XML document: <root> <parentElment> <testElement name="A"> <removableElement/>
4
2697
by: Mark | last post by:
Hi, I am trying to port an application for ASP.NET 1.1 to ASP.NET 2.0. Why am I getting "Error 1 Validation (Internet Explorer 6): Attribute 'ms_2d_layout' is not a valid attribute of element 'table'" from this element "<TABLE height="689" cellSpacing="0" cellPadding="0" width="1109" border="0" ms_2d_layout="TRUE">"? How do I fix this error? -- Thanks, Mark
0
1663
by: Aray | last post by:
Let us see the test file following: -------file nowork.xsd begin----------- <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.bonc.com.cn" targetNamespace="http://www.bonc.com.cn" elementFormDefault="qualified"> <xs:attribute name="testAttribute" type="xs:string"/> <xs:attributeGroup name="testAttributeGroup"> <xs:attribute ref="testAttribute"/>
0
9666
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
10410
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
10200
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
10139
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
9984
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
9020
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...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
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.