Hi,
I am using a visual webpart and using C# , in whcih i have a textbox and a submit button.
In the textbox, users enter the Name of the list, which they want to create and click on the button, and the list is created.
However, I want to restrict users from entering Invalid ListName.
I have checked this: http://www.sysadminsblog.com/microsoft/file-name-length-and-character-restrictions-for-sharepoint/
Has anyone created a validation which matches the above link criteria, when creating custom list programmatically? If yes, Please share the code.
Thanks