protected void SaveButton_Click(object sender, EventArgs e) { if (Page.IsValid) { _SerialKey.SerialKeyData = SerialKeyData.Text; _SerialKey.Save(); if (_ProductId > 0) { Response.Redirect("Configure.aspx?ProductId=" + _ProductId.ToString() + "&CategoryId=" + _CategoryId.ToString() + "&DigitalGoodId=" + _DigitalGoodId.ToString()); } else { Response.Redirect("Configure.aspx?DigitalGoodId=" + _DigitalGoodId.ToString()); } } }