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

13 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.

Gothai mal said...

Great blog.you put Good stuff.All the topics were explained briefly.so quickly understand for me.I am waiting for your next fantastic blog.Thanks for sharing.
ISTQB Certification Training in Chennai | Java Exam Center in Chennai | Microsoft Dot net Certification in Chennai

Mary Adlena said...

Thank you so much for sharing this worth able content with us.very spectacular possibility to read critical reviews from this site.
Citrix Exams in Chennai | Xenapp exam center in Chennai

ancy said...

Good content and thanks for giving nice information to read your blog.
OCJP Exam Center in Chennai | OCJP Exam Center in Velachery

krishna swamy said...

Nice post..Really very interesting to read..
VMware Exam Centers in Chennai | VMware Exam Centers in Velachery

Sarath K said...

Its so interesting to read, very nice blog. Thanks for sharing.. keep ongoing such a great blog...
CompTIA A+ Certifications Center in Chennai | A+ Exams in Perungudi

krishna swamy said...

Thank you so much for sharing this worth able content with us. The concept taken here will be useful for my future programs and i will surely implement them in my study. Keep blogging article like this.
Citrix Exams in Chennai | Xenapp exam center in Chennai

satheesh sutharapu said...

Wow...What an excellent informative blog, really helpful. Thank you.

chartered accountant | Avinash college of commerce

avinash said...

Nice blog with excellent information. Thank you, keep sharing.

chartered accountant course in Hyderabad | Avinash college of commerce

kri pav said...

Nice Post! It is really interesting to read from the beginning & I would like to share your blog to my circles, keep sharing…..
Pearson Vue Testing Center in Chennai | Java Exam Center in Velachery | Microsoft Dot net Certification in Velachery

selva a said...

Great blog.you put Good stuff.All the topics were explained briefly.so quickly understand for me.I am waiting for your next fantastic blog.Thanks for sharing.
ISTQB Certification Training in Chennai | Java Exam Center in Chennai | Microsoft Dot net Certification in Chennai