have to use fully trusted forms...might as well use administrator approved forms as well so you dont have to mess with certificates...and use some code like this:
int index = 0;
userName = (this.Application.User.LoginName);
if (userName.Contains("sqlmembershipprovider"))
{
index = userName.IndexOf("sqlmembershipprovider|") + 22;
userName = userName.Substring(index, userName.Length - index);
}
No comments:
Post a Comment