diff --git a/Example2/Chat.cs b/Example2/Chat.cs index c68539a1..d5977bec 100644 --- a/Example2/Chat.cs +++ b/Example2/Chat.cs @@ -28,7 +28,8 @@ namespace Example2 private string getName () { - var name = Context.QueryString["name"]; + var name = QueryString["name"]; + return !name.IsNullOrEmpty () ? name : _prefix + getNumber (); }