get domain name from email in asp.net c#

90

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;
+    }
+    %>

Comments

Submit
0 Comments