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 ;-)

19 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

deepti said...

Informative and useful article with smart and cute content..keep sharing..
Best MatLab Training Institute in Chennai | MatLab Training Center in Velachery

Nisha Premrahul said...

Nice piece of work. Thanks for sharing and keep updating.
Final Year Project Center in Chennai | IEEE Project Center in Chennai | Diploma Project Center in Chennai

sam said...

Thanks for sharing such a nice article.
Austere Technologies | Best Cloud Computing Services | NO.1 Clous solution company

massil said...

Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.

NO.1 APP DEVELOPMENT SERVICES | MASSIL TECHNOLOGIES

Ganesh Kumar said...

Thanks a lot for this useful tip. Thank you.

Web designing Training in Chennai | Web Designing training institute in Chennai

MAS said...

wow...nice blog, very help full information. Thanks for sharing.

NO.1 APP DEVELOPMENT SERVICES | ORACLE CLOUD SERVICES FOR APPLICATION DEVELOPMENT | MASSIL TECHNOLOGIES

AUSTERO said...

Thank you so much for sharing such an informative blog.

Best Mobility Services | Austere Technologies

AUSTERO said...

Excellent information.

Best IT Security Services | Austere Technologies

mari A said...

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

AWS Training in Chennai

Bashir Nisha said...

Interesting post. This is really helpful for me. Thanks for sharing.Web Designing Summer Camp in Velachery | Web Designing Summer Classes in Chennai | Web Designing Summer courses in Taramani

Ruban k said...

Incredible posting this is from you. I am really and truly thrilled to read this marvelous post.....
Best Summer Courses for Business Administration in Chennai | No.1 Vacation Classes in Velachery

cindrella gamio said...

Excellent information with unique content and it is very useful to know about the information based on blogs... Digital Marketing Summer Camp in Velachery | Digital Marketing Summer Classes in Chennai | Digital Marketing Summer courses in Taramani

castro nishanth said...

Excellent to read this Blog... Thanks for sharing this useful information... Tata Sky | Tata Sky New Connection | Tata Sky DTH New Connection

muthu said...

Nice sharing..Thank you...
Summer Training for Graphic Designing in Chennai | Summer Training for Graphic Designing in Velachery

kalai hai said...

The information has delivered was good.well said blog.I simply wanted to thank you so much again. I am not sure the things that I might have gone through without the type of hints revealed by you regarding that situation.
Adobe Photoshop Vacation Classes in Chennai | Best Technical Boot Camp in Chennai