protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DalOperationAboutAdminNotifyType dalNotifyType = new DalOperationAboutAdminNotifyType();

                AdminNotifyType type = dalNotifyType.FindAdminNotifyTypeById(int.Parse(Request["notifyTypeId"].ToString().Trim()));
                txtTypeName.Text = type.notifyTypeName.ToString().Trim();
                txtSequence.Text = type.sequence.ToString().Trim();

                DataTable dt = dalNotifyType.FindAllParentAdminNotifyType().Tables[0];

                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    ListItem _item = new ListItem(dt.Rows[i]["notifyTypeName"].ToString().Trim(), dt.Rows[i]["notifyTypeId"].ToString().Trim());
                    _item.Attributes.Add("parentId", "0");
                    ddlNotifyTypeManage.Items.Add(_item);
                }

                for (int i = 0; i < ddlNotifyTypeManage.Items.Count; i++)
                {
                    if (ddlNotifyTypeManage.Items[i].Value.ToString().Trim() == type.parentId.ToString().Trim())
                    {
                        ddlNotifyTypeManage.SelectedIndex = i;
                    }
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DalOperationAboutAdminNotifyType dalNotifyType = new DalOperationAboutAdminNotifyType();
         AdminNotifyType type = dalNotifyType.FindAdminNotifyTypeById(int.Parse(Request["notifyTypeId"].ToString().Trim()));
         txtTypeName.Text = type.notifyTypeName.ToString().Trim();
         txtSequence.Text = type.sequence.ToString().Trim();
     }
 }