Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I had single textbox using existing email name checking.
Functionality-wise it's working but I want more than one email name going to the text box.
I'm using array split methods but I don't get the query values.
This is my syntax:

C#
//char[] delims = ",".ToCharArray();
        string[] tokens = txtemail.Text.Split(",".ToCharArray());
        
        foreach (var tok in tokens)
        {
            var rs =db.checkemail(tok);
            checkemailResult cemail = new checkemailResult();
            if (rs.Count()>=1)
            {
                lblemail.Text = "Email name exits";
                return;
            }
        }


checkemail is SP query(select count(*)as recordfound1 from Emailinvites where Invitation_email=@Invitation_email))and using linq dbml used getting some properties.
Posted
Updated 26-Nov-10 17:20pm
v5
Comments
Dalek Dave 26-Nov-10 5:42am    
Edited for Readability and Grammar.
thatraja 26-Nov-10 5:49am    
What's the error? mention that in your question
[no name] 26-Nov-10 19:44pm    
Please elaborate. "I don't get the query values" from where. The split operation? What is db.checkmail doing?
Don't forget we are not sitting in your office nor can we read you mind.

1 solution

My feeling is that you had erred in your logic somewhere. Do note that checkemailResult() as well as cemail appear to be dead code and make no difference.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900