///
/// Using the user previously validated via VerifyCredentials(),
/// determine whether the user is in group Administrator level 1″.
/// Users can be in only one group; no looping is necessary.
///
///
public bool IsUserMesAdminLevelOne()
{
bool result = false;
WS_executive.ExecutiveWebService ews = null;
ews = new MesUtilities.WS_executive.ExecutiveWebService();
string userGroups = ews.GetUserGroups(mstrSID, mstrUserName);
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
Many people are now asking “How did we get into this viagra in india mess?” The responses by various people revolve around blame: the Government, Wall St, financial institutions, lenders, brokers and of course, individual buyers and investors. Many pharmacies over internet offer cheap online forzest at very affordable prices viagra sildenafil 100mg which a common man can afford. sample free cialis Bioperine is an extract from piper nigum, more commonly known as black pepper and it increases the absorption rate of opioids in the body that secrete minute peptides that have instantaneous distal effects in many other areas. Read viagra 100mg sales all the directions before buying the medicine. xmlDoc.LoadXml(userGroups);
System.Xml.XmlAttributeCollection xac = xmlDoc.GetElementsByTagName(“row”)[0].Attributes;
string groupName = xac[0].Value;
if (groupName.ToUpper().Equals(“Administrator level 1”.ToUpper()))
{
result = true;
}
return result;
}
Reference: http://www.developer.com/net/csharp/article.php/3489611/Manipulate-XML-File-Data-Using-C.htm