Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
QuestionDate conversion from YYMMDD to CCYYMMDD Pin
Member 1071407431-Mar-14 15:41
Member 1071407431-Mar-14 15:41 
AnswerRe: Date conversion from YYMMDD to CCYYMMDD Pin
Peter Leow31-Mar-14 16:21
professionalPeter Leow31-Mar-14 16:21 
GeneralRe: Date conversion from YYMMDD to CCYYMMDD Pin
Member 107140741-Apr-14 6:56
Member 107140741-Apr-14 6:56 
QuestionASP .Net issue with Oracle client Pin
Rock Star.31-Mar-14 4:05
Rock Star.31-Mar-14 4:05 
AnswerRe: ASP .Net issue with Oracle client Pin
Pete O'Hanlon31-Mar-14 4:14
mvePete O'Hanlon31-Mar-14 4:14 
QuestionL'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 2:35
remiki31-Mar-14 2:35 
AnswerRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 3:12
mvePete O'Hanlon31-Mar-14 3:12 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 3:22
remiki31-Mar-14 3:22 
look all that i Did

C#
void prece_dent()
      {
          //try{
              if (INDEX != 1)
              {
                  INDEX--;
                  lblenre.Text = "" + INDEX + " / " + rowCount;
                  OdbcConnection cnx = new OdbcConnection("DSN=KINGMINDONGO");
                  cnx.Open();
                  OdbcDataReader dtr;
                  OdbcCommand comded = new OdbcCommand("select *from client where code_client=" + @Convert.ToDecimal(code_client.Text));
                  comded.Connection = cnx;
                  dtr = comded.ExecuteReader();
                  for (int i = 0; i < INDEX; i++) dtr.Read();
                  code_client.Text = dtr.GetInt32(0).ToString();
                  nom.Text = dtr.GetString(1);
                  prenom.Text = dtr.GetString(2);
                  societe.Text = dtr.GetString(3);
                  date_naissance.Text = dtr.GetDate(4).ToString();
                  lieu_naissance.Text = dtr.GetString(5);
                  adresse.Text = dtr.GetString(6);
                  tel.Text = dtr.GetInt32(7).ToString();
                  fax.Text = dtr.GetInt32(8).ToString();
                  e_mail.Text = dtr.GetString(9);
                  compte_bancaire.Text = dtr.GetInt32(10).ToString();
                  banque.Text = dtr.GetString(11);


                  OdbcDataAdapter adpt = new OdbcDataAdapter(comded);
                  dtr.Close();
                  DataSet ds = new DataSet("client");
                  adpt.Fill(ds, "client");
                  int c = ds.Tables["client"].Rows.Count;
                  if (c > 0)
                  {

                      //var data = (Byte[])(ds.Tables["client"].Rows[c - 1]["photo"]);
                      //var stream = new MemoryStream(data);

                      Byte[] btpht = new Byte[0];
                      btpht = (Byte[])(ds.Tables["client"].Rows[c - 1]["photo"]);
                      MemoryStream phtosssss = new MemoryStream(btpht);

                      //try
                      //{
                          pictureBox1.Image = Image.FromStream(phtosssss);

                     // }
                      //catch (Exception ex)
                      //{ MessageBox.Show(ex.Message); }
                  }

GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:04
mvePete O'Hanlon31-Mar-14 4:04 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:13
remiki31-Mar-14 4:13 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:15
mvePete O'Hanlon31-Mar-14 4:15 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Dave Kreskowiak31-Mar-14 4:19
mveDave Kreskowiak31-Mar-14 4:19 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:21
remiki31-Mar-14 4:21 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:38
mvePete O'Hanlon31-Mar-14 4:38 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:57
remiki31-Mar-14 4:57 
GeneralRe: L'Exception ArgumentException was not Operated PinPopular
Dave Kreskowiak31-Mar-14 4:48
mveDave Kreskowiak31-Mar-14 4:48 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:11
remiki31-Mar-14 5:11 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:15
remiki31-Mar-14 5:15 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 5:25
mvePete O'Hanlon31-Mar-14 5:25 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:42
remiki31-Mar-14 5:42 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 5:48
mvePete O'Hanlon31-Mar-14 5:48 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Dave Kreskowiak31-Mar-14 17:47
mveDave Kreskowiak31-Mar-14 17:47 
GeneralRe: L'Exception ArgumentException was not Operated Pin
V.31-Mar-14 21:50
professionalV.31-Mar-14 21:50 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 23:13
remiki31-Mar-14 23:13 
GeneralRe: L'Exception ArgumentException was not Operated Pin
V.31-Mar-14 23:27
professionalV.31-Mar-14 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.