How to compare a text with ITEMS inside a list box in c#
<pre><code> string EmailDomain = useremail.Split('@')[1].Trim();
                foreach (ListItem li in lst_DomainList.Items)
                {
                    if (EmailDomain.Equals(li))
                    {
                    }
                 }
</code></pre>

<p>If the input is <code>abc@email.com</code> then after split the EmailDomain value is email.com 
the value inside the list  are </p>

<pre><code>email
email.com
</code></pre>

<p>Here the second items in the list matches with the EmailDomain value,. but the way I have done it it says they dont match, what should I do</p>
