protected void btnAdd_Click(object sender, EventArgs e) { Page.Validate("Save"); if (Page.IsValid) { DataTable data = getSchemaData(); stock.AddStockTransactions(data); } }