protected void SearchButton_Click(object sender, EventArgs e) { //TODO: split search field on spaces, add symptom searching, add boolean searching, may need to use different search method (not parameters) ResultsDataSource.SelectParameters.Clear(); ResultsDataSource.SelectParameters.Add(new Parameter("DiseaseName", System.Data.DbType.String, NameSearchTextBox.Text)); ResultsDataSource.Select(DataSourceSelectArguments.Empty); ResultsDataSource.DataBind(); ResultsGridView.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { //TODO: get data from text field in site.master, update search parameters ResultsDataSource.SelectParameters.Clear(); ResultsDataSource.SelectParameters.Add(new Parameter("DiseaseName", System.Data.DbType.String, "Test")); ResultsDataSource.Select(DataSourceSelectArguments.Empty); ResultsDataSource.DataBind(); ResultsGridView.DataBind(); } }
public WorkerResult(Widget widget) { results = new ResultsDataSource(widget); }
public WorkerResult (Widget widget) { results = new ResultsDataSource (widget); }
public WorkerResult () { results = new ResultsDataSource (); }
public WorkerResult() { results = new ResultsDataSource(); }