Exemple #1
0
        protected void btnContinue_Click(Object Sender, EventArgs e)
        {
            int intRequest = Int32.Parse(Request.QueryString["rid"]);
            int intItem    = Int32.Parse(lblItem.Text);
            int intNumber  = Int32.Parse(lblNumber.Text);

            oDNS.DeleteDNS(intRequest, intItem, intNumber);
            string strIP = txtIP1.Text + "." + txtIP2.Text + "." + txtIP3.Text + "." + txtIP4.Text;

            oDNS.AddDNS(intRequest, intItem, intNumber, "CREATE", "", "", strIP, "", txtName.Text, "", "NONE", Int32.Parse(ddlType.SelectedItem.Value));
            Response.Redirect(oPage.GetFullLink(intPage) + "?rid=" + Request.QueryString["rid"]);
        }
Exemple #2
0
        protected void btnContinue_Click(Object Sender, EventArgs e)
        {
            int intRequest = Int32.Parse(Request.QueryString["rid"]);
            int intItem    = Int32.Parse(lblItem.Text);
            int intNumber  = Int32.Parse(lblNumber.Text);

            oDNS.DeleteDNS(intRequest, intItem, intNumber);
            if (txtSearchName.Text != "")
            {
                oDNS.AddDNS(intRequest, intItem, intNumber, "DELETE", "NAME", "", "", txtSearchName.Text, "", "", "", 0);
            }
            if (txtSearchIP.Text != "")
            {
                oDNS.AddDNS(intRequest, intItem, intNumber, "DELETE", "IP", txtSearchIP.Text, "", "", "", "", "", 0);
            }
            Response.Redirect(oPage.GetFullLink(intPage) + "?rid=" + Request.QueryString["rid"]);
        }