Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Dear All,

 

 

Could anyone tell me what the, apparently unused, designerPlaceholderDeclaration is used for, please? Microsoft seem to want us to leave it intact, but I've tested code with it included and excluded, and it doesn't seem to make the slightest bit of difference...

 

 

Many thanks in advance

Paul.

  • Leaders
Posted
Just venturing a guess, here, but judging by the name designerPlaceholderDeclaration, I would say that this is a place holder to support the designer. I don't know if there is any more signifigance to it, because I don't program with ASP.NET, but I would guess its just there to help the designer sort things out (which is why it woudn't make a difference if it is excluded in the end product).
[sIGPIC]e[/sIGPIC]
Posted

Well doesn't that strike you as rather odd, however, bearing in mind that the Windows development side of things doesn't require a placeholder?...

 

Also, I've tested the designer both with it and without it, and there seems to be no difference either way.

Posted

It doesn't appear to regenerate, or rather, in my limited manipulations of the page through the designer, it doesn't appear to.

 

I did read something on MSDN explaining how to force FxCop to ignore the declaration, but can't find anything anywhere to explain exactly what it is used for.

 

Oh well, never mind - I'll try writing apps with and without it and see what happens...

 

Thanks for your help, Marble...

Paul.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...