The ScriptManager registers scripts in code behind, all it really does is creates script tags like in HTML, but mostly used when logic is needed to determine is the script should be loaded, or if loading an embedded script inside a DLL.
I recommend that you just use the script tags to register your script first, test your onClientClick, and then play around with the ScriptManager.
Inside your head tags, you register your Javascript
So inside your asp.net button object element, you put the following.
<asp:button runat="server" onclientclick="return CheckMaxlength(this);" xmlns:asp="#unknown" />
If you return true, then the button will click, if you return false, the button will not click
To register a script in code behind, make a client script manager, and pass it to the register
Dim cs As ClientScriptManager = Me.Page.ClientScript
Dim rsType As Type = Me.GetType()
If (Not cs.IsClientScriptIncludeRegistered(rsType, "jquery")) Then
cs.RegisterClientScriptInclude("jquery", cs.GetWebResourceUrl(rsType, "SC_Standard.jquery.js"))
End If