Пример #1
0
        protected void DeleteData()
        {
            string id = base.Request.QueryString["id"];

            WifiSet.DeleteXML(id);
            base.Response.Redirect("WifiSetList.aspx");
        }
Пример #2
0
        protected void btnSave_Click(object sender, System.EventArgs e)
        {
            int    num          = System.Convert.ToInt32(this.hd_id.Value);
            string text         = this.txt_wifiName.Text.Trim();
            string text2        = this.txt_wifiPwd.Text.Trim();
            string wifiDescribe = this.txt_wifiDescribe.Text.Trim();

            string.Concat("wifi_" + text + "|" + text2);
            if (!string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(text2))
            {
                if (num > 0)
                {
                    WifiSet.UpdateXML(num, text, text2, wifiDescribe);
                }
                else
                {
                    WifiSet.InsertXMl(text, text2, wifiDescribe);
                }
                base.Response.Redirect("WifiSetList.aspx");
            }
        }