How to find space in between word using c# .net

In windows Application we want to check empty space paste the below coding in your .cs page...


for example


Name Field: "  Mano   kumar"

Here 2 spaces . so we want to find put below lines.....




if(TextBox1.Text.Contains(""))
{

     MessageBox.Show("Please Enter Name without Space");
}





Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

1 comments: on "How to find space in between word using c# .net"

Anonymous said...

ThanX....

Post a Comment