if statement to control input text in code behind [closed]

两盒软妹~` 提交于 2019-12-25 01:16:30

问题


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")
        {



        }

回答1:


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.



来源:https://stackoverflow.com/questions/6636323/if-statement-to-control-input-text-in-code-behind

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!