Esempio n. 1
0
        protected void btnAdd_Click(Object Sender, EventArgs e)
        {
            int intLocation = 0;

            if (Request.Form[hdnLocation.UniqueID] != "")
            {
                intLocation = Int32.Parse(Request.Form[hdnLocation.UniqueID]);
            }
            if (intID == 0)
            {
                oDomain.AddClassDNS(intDomain, intClass, intLocation, txtDNS1.Text, txtDNS2.Text, txtDNS3.Text, txtDNS4.Text, txtWINS1.Text, txtWINS2.Text, txtWINS3.Text, txtWINS4.Text);
            }
            else
            {
                oDomain.UpdateClassDNS(intID, txtDNS1.Text, txtDNS2.Text, txtDNS3.Text, txtDNS4.Text, txtWINS1.Text, txtWINS2.Text, txtWINS3.Text, txtWINS4.Text);
            }
            Response.Redirect(Request.Path);
        }