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

W3C Validation Issue!

Hello,

I have created my new website with Asp.net 2.0
I fixed most of the basic validation errors, but I still have 4 common errors that are listed below:

1) Line 116, Column 26: element "triggers" undefined.
-Highlited Message: <triggers>

2) Line 117, Column 48: there is no attribute "ControlID"
- Highlited Message: <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />

3) Line 117, Column 68: there is no attribute "EventName"
- Highlited Message: …yncPostBackTrigger ControlID="Button1" EventName="Click" />

4) Line 117, Column 77: element "asp:AsyncPostBackTrigger" undefined
-Highlited Message: … ControlID="Button1" EventName="Click" />


If someone knows how to solve one or more of the 4 errors, I will be more than thanksful.

Best regards,
Wassim
Feb 25 '08 #1
8 1149
drhowarddrfine
7,435 Expert 4TB
Well, it is what it says it is. There is no such thing as <triggers> or ControlID and all that in HTML. I think some of that was to be interpreted and sent out on the server side as valid html but that's not happening.

I'm sending this to the .NET forum where they can help you with that.
Feb 25 '08 #2
Plater
7,872 Expert 4TB
It looks like you copy/pasted the source for your ASPX page into the W3 validator, and not the html it outputs?
Feb 25 '08 #3
It looks like you copy/pasted the source for your ASPX page into the W3 validator, and not the html it outputs?
Hello,
thanks for your reply.

Well, in the validator online I'm putting like this:
http://www.mywebsite.com/Default.aspx
http://www.mywebsite.com/AnotherPage.aspx

Isn't it how we validate our aspx pages? I have validated html websites before, but it's my first time that I try this with an asp.net website.

Best regards,
Wassim
Feb 25 '08 #4
A tip for you guys is that I'm using Ajax components in my pages, I don't know if this will help you know better what the problem is!
Feb 26 '08 #5
Plater
7,872 Expert 4TB
Well, the reason I asked is because there should not be any <asp: tags in your html source. That they're there would indicate to me that there are warnings in your compiler telling you those are not correct objects?
Feb 26 '08 #6
Well, the reason I asked is because there should not be any <asp: tags in your html source. That they're there would indicate to me that there are warnings in your compiler telling you those are not correct objects?
Hello,
you are right, I viewed the source code for the website online, and I saw this block of code:

Expand|Select|Wrap|Line Numbers
  1. <Triggers>
  2. <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
  3. </Triggers>
I remember that I placed this code because the button was away from the updatePanel (Ajax). However, I removed this block of code completely, and make few modifications to the code, and now my page passed the validation, and the button is also working.

I don't understand why W3C can't understand the "Triggers" tag, for the moment I was able to solve that, but in the future I might need it again, and I'll pass through the same problem once again! So let's hope someone will be able to find out how to solve it.

Anyway Thank you guys for your help :)

Best regards,
Wassim
Feb 26 '08 #7
Plater
7,872 Expert 4TB
It's not that it doesn't understand the <triggers> tag, it's that its not part of a valid html page.
Now if you declared your page as XML and gave triggers as a valid element at that point of your page withen the DTD, it might have let it trhough. But I don't know how well it works with custom XML docs
Feb 26 '08 #8
It's not that it doesn't understand the <triggers> tag, it's that its not part of a valid html page.
Now if you declared your page as XML and gave triggers as a valid element at that point of your page withen the DTD, it might have let it trhough. But I don't know how well it works with custom XML docs

Thanks for the tip, Plater.

I will consider this next time I face the same problem. Many thanks for helping me all the time.

Best regards,
Wassim
Feb 26 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Marina | last post by:
Imagine a form with some fields and an OK buttons that saves the information. Each field has validation logic in the Validating event. If the input is not valid, the control's value is replaced...
7
by: A.M | last post by:
Hi, I have a validation control in my page that upon any invalid data, it disables all buttons in the page. basicly i don't have any postback in the page if the validator finds any error. How...
8
by: moondaddy | last post by:
I have a form for entering a user's address and all fields have a required validating control associated with them and the error msg for each field displays right next to it. The normal behavior...
2
by: Mark | last post by:
Hi, I've been having problems with the validation controls not working on my deployment server. Initially it was a security issue with the anonymous account not having permissions to access...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
45
by: Pat | last post by:
its seems asp.net validation doesn't fire when using FireFox? Tested a page and it doesn't fire. It seems the javascript doesn't fire Any ideas?
1
by: Hong Hao | last post by:
Recently, I was trying to modify an existing aspx page when client-side validation on that page stopped working. I searched this group and the web in general and found that other people have had...
3
by: Bob Alston | last post by:
I have a routine to copy data to new versions of my app via insert into sql statements. Unfortunately, due to evolution of my app, sometimes the new version has more restrictive editing than an...
7
by: h7qvnk7q001 | last post by:
I'm trying to implement a simple server-side form validation (No Javascript). If the user submits a form with errors, I want to redisplay the same form with the errors highlighted. Once the form...
3
by: teo | last post by:
Mozilla error on postback and validation ----------- A Button causes a Listbox to desappear. If no item has been selected on the Listbox, all is OK. If one or more items are selected,
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.