Access OKTA LDAP using ASP.NET

Can you please provide code sample on how to connect to OKTA LDAP using ASP.NET?

I was able to successfully validate OKTA LDAP bind details using Softerra LDAP browser tool but unable to connect using ASP.NET.

Any suggestions would be helpful.