hi,
i Have a application that has a windows authentication. before the user login to the home page, they need to provide the username and password in the window popup. in my page load event iam retreving the username
system.security.principal.
iprincipal
user;
user=system.web.httpcontex
t.current.
user;
string username;
username=user.identity.nam
e;
when i debug the application the name showing is like domain\\username. that's fine but i want to send only the username as a parameter to a class called authenticate() where it will connect to the database and check the roles and groups. i want to know how to separate the donain and the username in two different strings and pass just the username as a parameter to the class.
For example
corp\\glad
i want to send the username "glad" to the authenticate class. how to do this. please guide me in this.
Start Free Trial