protected void Button1_Click(object sender, EventArgs e)
    {
        SerRef.PatientCRUDClient myService = new SerRef.PatientCRUDClient();
        String result = myService.Search("filecode", txtSearch.Text);

        String[] data;

        data               = result.Split('*');
        filecodetxt.Text   = data[0];
        fnametxt.Text      = data[1];
        lnametxt.Text      = data[2];
        dobtxt.Text        = data[3];
        gendertxt.Text     = data[4];
        streettxt.Text     = data[5];
        citytxt.Text       = data[6];
        celltxt.Text       = data[7];
        hometxt.Text       = data[8];
        emailtxt.Text      = data[9];
        medicaltxt.Text    = data[10];
        allergytxt.Text    = data[11];
        bgtxt.Text         = data[12];
        occupationtxt.Text = data[13];
        efnametxt.Text     = data[14];
        elnametxt.Text     = data[15];
        eworktxt.Text      = data[16];
        estreettxt.Text    = data[17];
        ecitytxt.Text      = data[18];
        emfnametxt.Text    = data[19];
        emlnametxt.Text    = data[20];
        emstreettxt.Text   = data[21];
        emcitytxt.Text     = data[22];
        emcelltxt.Text     = data[23];
        emhometxt.Text     = data[24];
        ememailtxt.Text    = data[25];
    }
Exemple #2
0
    protected void search_Click(object sender, EventArgs e)
    {
        SerRef.PatientCRUDClient myService = new SerRef.PatientCRUDClient();
        string result = myService.Search(txtCat.Text, txtSearch.Text);

        string[] result1 = result.Split('#');
        string[] res;

        for (int i = 0; i < result1.Length - 1; i++)
        {
            res = result1[i].Split('*');
            TableRow tRow = new TableRow();
            tb1.Rows.Add(tRow);
            for (int b = 0; b < res.Length; b++)
            {
                TableCell tCell = new TableCell();
                tCell.Text = res[b];
                tRow.Cells.Add(tCell);
            }
        }
    }