Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Check if ListName is Valid

$
0
0

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



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>