I am using WebServices methods of SharePoint Server/Project Server. As we know that the user name and password are needed to access the sharpoint site/project server site(PWA). While I used the following code(C#) in my ascx page, it works fine.
private static UserGroupWS.UserGroup userGroup = new UserGroupWS.UserGroup();
userGroup.Url = "http://DomainName/_vti_bin/UserGroup.asmx";
userGroup.Credentials = new System.Net.NetworkCredential("UserName", "Password", "DomainName");
Note that there are the parameters namded "Password" also in NetworkCredential() method. While this page is using as webpart in SharePoint Site, I can access the UserName currently logined to pass as first parameter in this method. But how to retrieve Password of the current UserName currently logined to pass as second parameter in this method? Is there any idea?
Please help!!!