Click here to Skip to main content
15,887,434 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Has Anybody Seen This Control? Pin
thatraja16-Feb-11 19:51
professionalthatraja16-Feb-11 19:51 
AnswerRe: Has Anybody Seen This Control? Pin
enhzflep19-Mar-11 19:37
enhzflep19-Mar-11 19:37 
QuestionHorizontal Movement Pin
gamefreak229114-Feb-11 11:26
gamefreak229114-Feb-11 11:26 
AnswerRe: Horizontal Movement Pin
Sunasara Imdadhusen15-Feb-11 17:58
professionalSunasara Imdadhusen15-Feb-11 17:58 
GeneralRe: Horizontal Movement Pin
gamefreak229116-Feb-11 4:34
gamefreak229116-Feb-11 4:34 
QuestionI want to create a news website Pin
Mohammad A Gdeisat14-Feb-11 3:15
Mohammad A Gdeisat14-Feb-11 3:15 
AnswerRe: I want to create a news website Pin
DeDawg14-Feb-11 4:26
DeDawg14-Feb-11 4:26 
GeneralRe: I want to create a news website Pin
Mohammad A Gdeisat14-Feb-11 5:59
Mohammad A Gdeisat14-Feb-11 5:59 
GeneralRe: I want to create a news website Pin
DeDawg16-Feb-11 5:13
DeDawg16-Feb-11 5:13 
GeneralRe: I want to create a news website Pin
Mohammad A Gdeisat16-Feb-11 5:41
Mohammad A Gdeisat16-Feb-11 5:41 
AnswerRe: I want to create a news website Pin
Not Active14-Feb-11 8:41
mentorNot Active14-Feb-11 8:41 
GeneralRe: I want to create a news website Pin
DeDawg16-Feb-11 5:14
DeDawg16-Feb-11 5:14 
GeneralRe: I want to create a news website Pin
Not Active17-Feb-11 2:23
mentorNot Active17-Feb-11 2:23 
QuestionNot able to export SSL certificate to another server Pin
Ankur.Bakliwal10-Feb-11 1:17
Ankur.Bakliwal10-Feb-11 1:17 
QuestionImage Menu Hover Pin
exotiick9-Feb-11 21:47
exotiick9-Feb-11 21:47 
AnswerRe: Image Menu Hover Pin
Sunasara Imdadhusen15-Feb-11 22:07
professionalSunasara Imdadhusen15-Feb-11 22:07 
AnswerRe: Image Menu Hover Pin
Dalek Dave28-Mar-11 6:11
professionalDalek Dave28-Mar-11 6:11 
Questionfile automatically deletes on server Pin
Danzy839-Feb-11 10:56
Danzy839-Feb-11 10:56 
AnswerRe: file automatically deletes on server Pin
Peter_in_27809-Feb-11 11:58
professionalPeter_in_27809-Feb-11 11:58 
AnswerRe: file automatically deletes on server Pin
Pravin Patil, Mumbai4-Mar-11 1:13
Pravin Patil, Mumbai4-Mar-11 1:13 
Questionvalidating input type file in a form (no responses in JavaScript Forum) Pin
Douglas Kirk5-Feb-11 16:22
Douglas Kirk5-Feb-11 16:22 
AnswerRe: validating input type file in a form (no responses in JavaScript Forum) Pin
Shahriar Iqbal Chowdhury/Galib11-Feb-11 10:17
professionalShahriar Iqbal Chowdhury/Galib11-Feb-11 10:17 
QuestionOddness that I never noticed before Pin
Ray Cassick4-Feb-11 16:59
Ray Cassick4-Feb-11 16:59 
Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled.

Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit...

Just being able to add some typical comments inside some basic XAML looks like so:

<!-- Name Portion [Application Name] -->
<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
   <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">
      <!-- Logo Picture -->
      <ContentControl Style="{StaticResource LogoIcon}"/>
      <!-- Logo Name -->
      <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"/>
   </StackPanel>
</Border>


So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:

<!-- Name Portion [Application Name] -->
<!-- 
<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">;
   <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">;
      <!-- Logo Picture -->
      <ContentControl Style="{StaticResource LogoIcon}"/>
      <!-- Logo Name -->
      <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"/>
   </StackPanel>
</Border>
-->


Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment.

This however is just fine apparently:

<!-- Name Portion [Application Name] -->
<!-- 
<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
    <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">
       <ContentControl Style="{StaticResource LogoIcon}">
       <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"/>
    <StackPanel>
</Border>
-->


It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:

<!-- Name Portion [Application Name] -->
<!-- <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}"> -->
<!--    <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}"> -->
<!--       Logo Picture -->
<!--       <ContentControl Style="{StaticResource LogoIcon}"> -->
<!--       Logo Name -->
<!--       <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"> -->
<!--    </StackPanel> -->
<!-- </Border> -->


What a real pain...

AnswerRe: Oddness that I never noticed before Pin
_Maxxx_7-Feb-11 18:15
professional_Maxxx_7-Feb-11 18:15 
AnswerRe: Oddness that I never noticed before Pin
Dalek Dave9-Feb-11 11:10
professionalDalek Dave9-Feb-11 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.