protected void categorySaveButton_OnClick(object sender, EventArgs e) { CategoryInput input = new CategoryInput(); input.Name = CategoryInputTextBox.Text; string message = maneger.Save(input); output.Text = message; CategorySetupGridView.DataSource = maneger.GetAllCategory(); CategorySetupGridView.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { CategorySetupGridView.DataSource = maneger.GetAllCategory(); CategorySetupGridView.DataBind(); }