Example #1
0
        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();
        }
Example #2
0
 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();
     }
 }