get domain name from email in asp.net c#
<% Session["Firstamemail"] = false;
+
+ var Email = this.Model.Email;
+ var Domain = Email.Split('@')[1];
+ if (Domain.Equals(ConfigurationManager.AppSettings["AIMDomainName"].ToLower()))
+ {
+ Session["Firstamemail"] = true;
+ }
+ %>