Beispiel #1
0
        protected void publishBtn_Click(object sender, EventArgs e)
        {
            //get input
            string mText = Textbox1.Text;

            Textbox1.Text = string.Empty;

            int mType = Convert.ToInt32(mTypeRadioButtonList.SelectedItem.Value);

            //int mType = 2;

            //write to motd file
            motd.SetMessage(mText, mType);
            this.SetCurrentMsg();
        }