Tag Info

New answers tagged


I don't know if you can check a list by ID, but you can check the "BaseTemplate" property. SPList list = web.Lists["List ID"]; SPListTemplateType type = list.BaseTemplate; if(type == SPListTemplateType.Tasks){ //Do something for a Task List }else if(type == SPListTemplateType.Survey) { //Do something for a Survey List } If ...


You should be able to get it using Object-Model-Browsers like SharePoint-Manager 2013 (available via Codeplex) But I don´t know, if your list gets a custom templateId at all, if you are generating your template using the "Save As Template"-Option via the GUI. If it does, however, the base List, from which you generated the template will still have it´s ...

Top 50 recent answers are included