예제 #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();
        }
예제 #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();
     }
 }
 public WorkerResult(Widget widget)
 {
     results = new ResultsDataSource(widget);
 }
			public WorkerResult (Widget widget)
			{
				results = new ResultsDataSource (widget);
			}
예제 #5
0
			public WorkerResult ()
			{
				results = new ResultsDataSource ();
			}
 public WorkerResult()
 {
     results = new ResultsDataSource();
 }