473,396 Members | 2,014 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,396 software developers and data experts.

Visual Studio 2005 html-view does not recognize the generated html-tag of a custom control

Hello,
this is a hint only.

If you make a custom control for example witch generates code

<div......</div>

and I put such a control in a page
then in html-view of the aspx-file
I could write

<p>
<c01:MyControl/>
</p>

generated I have:

<p><div>.....</div></p>
this is bad because I have a block-element (div) in a paragraph what seem
not to be good.

But when I am in VS html view and would write
<p><div.... direktly I get red markers which says that is wrong.

If I take my control the error-systems does know nothing about the tag which
is generated from the control,

I think this problem also occures when I use ready to use controls
for example <p><asp:mytable....

I think in the next version of VS the VS-System should also see which tags
are generated from the control to
give error-hints to generate well formed html.

Remark: I work with Web-Projects, not with Visual Web Designer, so I have no
Validation of the html.

Thank you for recognize this problem for a better VS in the future.
Rolf Welskes
Oct 5 '06 #1
3 1637
It is against the rules of strict XHTML, which is why you are getting
warnings. They are warnings, not errors. This does not mean you should not
clean them up, but they are not going to blow things up.

But, if you are outputting a <DIV>, you have no clue someone placed it in a
<p>, so there is nothing you can do from inside the control. You can write
up the "rules" for other developers, but they will ultimately have to follow
them. The only thing you can do is drop the <DIV>, but that likely blows up
your code, so you are back to living with what it does or having someone
clean up the tags in the ASPX page.

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

*************************************************
Think outside of the box!
*************************************************
"Rolf Welskes" <ro**@nospam.nospamwrote in message
news:uO**************@TK2MSFTNGP06.phx.gbl...
Hello,
this is a hint only.

If you make a custom control for example witch generates code

<div......</div>

and I put such a control in a page
then in html-view of the aspx-file
I could write

<p>
<c01:MyControl/>
</p>

generated I have:

<p><div>.....</div></p>
this is bad because I have a block-element (div) in a paragraph what seem
not to be good.

But when I am in VS html view and would write
<p><div.... direktly I get red markers which says that is wrong.

If I take my control the error-systems does know nothing about the tag
which is generated from the control,

I think this problem also occures when I use ready to use controls
for example <p><asp:mytable....

I think in the next version of VS the VS-System should also see which tags
are generated from the control to
give error-hints to generate well formed html.

Remark: I work with Web-Projects, not with Visual Web Designer, so I have
no Validation of the html.

Thank you for recognize this problem for a better VS in the future.
Rolf Welskes


Oct 5 '06 #2
Hi Rolf,

From your description, I understand that you wish the IDE would take the
custom control's generated html into account when validating the webform
source at design time.

Thank you for letting us know your suggestion. I strongly encourage you to
submit your feedback at
http://connect.microsoft.com/Main/co...ContentID=2220 which
is monitored by our product team directly.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

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://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 6 '06 #3
Hello,
yes you see it right, is a suggestion.
Best Regards
Rolf Welskes

"Walter Wang [MSFT]" <wa****@online.microsoft.comschrieb im Newsbeitrag
news:S%****************@TK2MSFTNGXA01.phx.gbl...
Hi Rolf,

From your description, I understand that you wish the IDE would take the
custom control's generated html into account when validating the webform
source at design time.

Thank you for letting us know your suggestion. I strongly encourage you to
submit your feedback at
http://connect.microsoft.com/Main/co...ContentID=2220
which
is monitored by our product team directly.

Sincerely,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

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://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Oct 6 '06 #4

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

Similar topics

2
by: Wendy Elizabeth | last post by:
I was just assigned a project at work to setup a CRM web system. However from what I have heard Visual Studio 2005 Team System is suppose to be a CRM system. Is it a metholodologythat Microsoft...
3
by: Thom Little | last post by:
I have ASP.NET websites deployed on a number of servers. Thee were developed with Visual Studio 2003. Is it true that Visual Studio 2005 only supports .NET Framework 2.0 and I will be required...
3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
1
by: clkalluri | last post by:
Hi, I've installed (by that I mean a full uninstall and re-install) Visual Studio 2005 at least twice on my 64-bit windows machine (AMD64). I make sure I install the SDK 2.0 for x64, and the...
4
by: Skc | last post by:
We have a developer who has made an application in Visual Studio 2003 and this will not work in our version of Visual Studio 2002. Error message: Solution file loading error: The selected file...
2
by: Progman | last post by:
I have Visual Studio 2005 Standard edition. Is ti the same thing as the Express edition or Standard is more?
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
11
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I have seen the terms Visual Basic 2005 and VB.NET. It seems that sometimes they seem to be referring to the same thing but sometimes they are not. I also run into terms like VB9 and VB10.
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I must be out of my mind. I used visual studio .net 2003 before and I installed 2005 a while back, but seldom to use it. Recently I was required to start to learn C# asp.net. So I tried...
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: 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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...

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.