shieldguy
asked on
Problem creating a list programmatically using list template
I am creating a list programmatically using a custom list template called 'Our Meeting Rooms'. When I try to retrieve the list template using the following line of code it raises the exception that 'vale does not fall within the expected range'.
SPListTemplate listTemplate= web.ListTemplates ["Our Meeting Rooms"];
I can create a list through UI in SharePoint using the same template but for some reason it ican't be used in program.
Any suggestions please??
SPListTemplate listTemplate= web.ListTemplates ["Our Meeting Rooms"];
I can create a list through UI in SharePoint using the same template but for some reason it ican't be used in program.
Any suggestions please??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can anyone help please?
ASKER
SPListTemplate listTemplate = web.ListTemplates["ListTem