Search code examples
asp.netc#-4.0code-behind

if statement to control input text in code behind


I need to create if statement to control input text for example; when user type blue, send message from code behind for next user in order to notify him or her blue is already typed. Is there any solution:

        if (user.Text == "blue")
        {



        }

Solution

  • You can put such value in Static variable or Application level object, so that value will be persisted across the user and you can check for your next user from static or application level variable.