ActivEarth.Groups.CreateGroup.AddHashTag C# (CSharp) Method

AddHashTag() protected method

Method called when the Add Hashtag Button is clicked. Adds the text in txbHashTag to the list of Hashtags and clears the text in txbHashtag.
protected AddHashTag ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected void AddHashTag(object sender, EventArgs e)
        {
            lblAllHashTags.Text = lblAllHashTags.Text.Substring(1, lblAllHashTags.Text.Length - 2);
            if (lblAllHashTags.Text == "")
            {
                lblAllHashTags.Text = "[" + txbHashTag.Text + "]";
            }
            else
            {
                lblAllHashTags.Text = "[" + lblAllHashTags.Text + ", " + txbHashTag.Text + "]";
            }

            txbHashTag.Text = "";
        }