Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
+    }
+    %>
Source by bitbucket.org #
 
PREVIOUS NEXT
Tagged: #domain #email
ADD COMMENT
Topic
Name
6+2 =