Friday, 3 September 2010

Get Web template and configuration id

Here is an easy way to get the name of the Web Template and the Configuration id from a SPWeb.


string template = web.WebTemplate; // gives you the name of the Web Template
int configuratuionId = web.Configuration; // gives you the configutaion id


Thats all ;-)

4 comments:

Anonymous said...

Thank you martin, it saved me!!

Stops said...

Thanks alot for this tip!
I was searching for about an hour on how to get the Template ID in the format "TEMPLATENAME#CONFIGID"... this was the only source! :)

Thanks again and have a nice day!

Chris.

Eaton Hardin said...

I am able to get Web design by verifying its ID, but we have ten's of web options within a web design so in brief we have lots of web design id's with different options and Headline.

Careen joseph said...

Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
web design training in chennai