private void setData() { typeId = Int32.Parse(Request.QueryString["id"]); PaymentType types = UpdatePaymentTypeController.GetPaymentTypeController(typeId); oldTypeName = types.Type.ToString(); if (!Page.IsPostBack) { TxtTypeName.Text = types.Type.ToString(); } }