Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DOCUMENT in VS.Net 2003 designer - what type is this?

Reply
Thread Tools

DOCUMENT in VS.Net 2003 designer - what type is this?

 
 
Joergen Bech
Guest
Posts: n/a
 
      10-04-2005

Whenever no controls are selected in the VS.Net 2003 webforms
designer, the Properties box defaults to "DOCUMENT", which allows
me to set properties such as bgColor, bgProperties, bottomMargin,
clientTarget, errorPage, targetSchema, etc.

I have searched various assemblies with .Net Reflector for such
a class, but to no avail.

Does anyone have an idea where this DOCUMENT class resides
in the framework? Somewhere, something must send an object to
the propertygrid causing it to display those exact properties?

/Joergen Bech



 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      10-04-2005
It's a VS.Net thing. Some of the properties map to the Page class, such as
Culture, Trace and codePage. Others are simply values the editor places in
your HTML, and aren't ASP.Net related, such as a the bgColor, title and
link.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!



"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNOSPAM> wrote in message
news:(E-Mail Removed)...
>
> Whenever no controls are selected in the VS.Net 2003 webforms
> designer, the Properties box defaults to "DOCUMENT", which allows
> me to set properties such as bgColor, bgProperties, bottomMargin,
> clientTarget, errorPage, targetSchema, etc.
>
> I have searched various assemblies with .Net Reflector for such
> a class, but to no avail.
>
> Does anyone have an idea where this DOCUMENT class resides
> in the framework? Somewhere, something must send an object to
> the propertygrid causing it to display those exact properties?
>
> /Joergen Bech
>
>
>



 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      10-04-2005
It doesn't reside in the framework. It resides in the HTML DOCUMENT object
model. It represents the HTML document itself.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.

"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNOSPAM> wrote in message
news:(E-Mail Removed)...
>
> Whenever no controls are selected in the VS.Net 2003 webforms
> designer, the Properties box defaults to "DOCUMENT", which allows
> me to set properties such as bgColor, bgProperties, bottomMargin,
> clientTarget, errorPage, targetSchema, etc.
>
> I have searched various assemblies with .Net Reflector for such
> a class, but to no avail.
>
> Does anyone have an idea where this DOCUMENT class resides
> in the framework? Somewhere, something must send an object to
> the propertygrid causing it to display those exact properties?
>
> /Joergen Bech
>
>
>



 
Reply With Quote
 
Joergen Bech
Guest
Posts: n/a
 
      10-04-2005

Are you referring to IHTMLDocument2 in
Microsoft.VSDesigner.Interop.Trident?

I am aware of this one, but something like
Microsoft.VisualStudio.Web.WebForms.PageDirective in
microsoft.visualstudio.web

comes much closer in terms of the properties displayed
in the propertygrid. Some properties are missing, though,
so I suppose another class derived from PageDirective
is used instead.

My original question was -which class- was used to send
to the propertygrid. The grid needs an object of a specific
type - not just a collection of name/value pairs in order to
perform its duties. At the moment I am not too concerned
with where the values eventually end up.

???

Regards,

Joergen Bech



On Tue, 4 Oct 2005 07:39:33 -0400, "Kevin Spencer"
<(E-Mail Removed)> wrote:

>It doesn't reside in the framework. It resides in the HTML DOCUMENT object
>model. It represents the HTML document itself.


 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      10-04-2005
> Are you referring to IHTMLDocument2 in
> Microsoft.VSDesigner.Interop.Trident?


No, I'm referring to the HMTL Document Object Model.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.

"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNOSPAM> wrote in message
news:(E-Mail Removed)...
>
> Are you referring to IHTMLDocument2 in
> Microsoft.VSDesigner.Interop.Trident?
>
> I am aware of this one, but something like
> Microsoft.VisualStudio.Web.WebForms.PageDirective in
> microsoft.visualstudio.web
>
> comes much closer in terms of the properties displayed
> in the propertygrid. Some properties are missing, though,
> so I suppose another class derived from PageDirective
> is used instead.
>
> My original question was -which class- was used to send
> to the propertygrid. The grid needs an object of a specific
> type - not just a collection of name/value pairs in order to
> perform its duties. At the moment I am not too concerned
> with where the values eventually end up.
>
> ???
>
> Regards,
>
> Joergen Bech
>
>
>
> On Tue, 4 Oct 2005 07:39:33 -0400, "Kevin Spencer"
> <(E-Mail Removed)> wrote:
>
>>It doesn't reside in the framework. It resides in the HTML DOCUMENT object
>>model. It represents the HTML document itself.

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Building Controls 3 07-30-2007 09:09 PM
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Web Controls 0 07-21-2007 12:58 AM
Sharepoint Designer/ Expression Web Designer : adding item in toolbox ? Steve B. ASP .Net 4 06-01-2007 04:29 AM
Re: The designer could not be shown for this file ... in VS 2003 - Please HELP! Johann Blake ASP .Net 4 12-09-2004 10:33 PM
Upgrade To 2003: Cannot Load Web Forms Designer; Using Page Descendent L Scott ASP .Net 0 08-31-2004 04:28 PM



Advertisments