keyongtech


  keyongtech > sharepoint.* > sharepoint.windowsservices.development > 01/2009

 #1  
01-09-09, 10:11 PM
AlexZ
How to find the default content type of a document library?

We use List Web service to get content types. The web service returns
XMLNode which includes all the content type the document library has. But
since there is no default attribute in content type node. We are not sure
which one is default. Could you tell me how we can find the default content
type of document library?


Thanks
 #2  
01-10-09, 02:46 AM
Michael Nemtsev [MVP]
Hello AlexZ,

Default content type is the first from all CT if your library

http://hristopavlov.wordpress.com/20...ogramatically/
Similar Threads
Excel Content Type issue, shows default not assigned type.

Question about the way Content Types work between Word and Excel. I have a several content types set up 6 using Excel and one using Word. I'm seeing a weird behavior, where...

Selecting Content Types from the "New" menu gets the wrong content type

The scenario * Create 2 breand new content types/ Provide each one with a word 2007 document as the template (each with some different text to test success). Attach both...

Populating a Custom Content Type Template with custom content

Running WSS 3.0 (no MOSS) and Office 2003. I can create a custom content type inside a document library and/or list that points to a custom template when I want to create a...

Content type from existing content

I have an existing list with data (portal site is MOSS2007 and has been migrated from WSSv2) with no content types. I would like to use existing fields to form new different...

Content-type and content-disposition information missing

I am trying to attach/embed a message inside another message (IMessage) where PR_ATTACH_METHOD = ATTACH_EMBEDDED_MSG The problem is that the Content-Type and...


All times are GMT. The time now is 11:28 PM. | Privacy Policy