Click here to Skip to main content
15,887,434 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: hi experts imgetting the error index out of rang pls help to solve Pin
John C Rayan12-May-16 2:47
professionalJohn C Rayan12-May-16 2:47 
GeneralRe: hi experts imgetting the error index out of rang pls help to solve Pin
Richard Deeming12-May-16 3:22
mveRichard Deeming12-May-16 3:22 
PraiseRe: hi experts imgetting the error index out of rang pls help to solve Pin
John C Rayan12-May-16 4:24
professionalJohn C Rayan12-May-16 4:24 
QuestionForm not sending Pin
Member 87616674-May-16 5:32
Member 87616674-May-16 5:32 
QuestionRe: Form not sending Pin
Richard MacCutchan4-May-16 5:57
mveRichard MacCutchan4-May-16 5:57 
AnswerRe: Form not sending Pin
Member 87616674-May-16 7:27
Member 87616674-May-16 7:27 
GeneralRe: Form not sending Pin
Richard MacCutchan4-May-16 9:33
mveRichard MacCutchan4-May-16 9:33 
GeneralRe: Form not sending Pin
Member 87616674-May-16 10:07
Member 87616674-May-16 10:07 
I am trying to tidy it up a little. I didn't have these namespaces in, for example, beforehand:

Imports System.Data.OleDb.OleDbCommand
Imports System.Data.OleDb.OleDbDataReader


and the 'order' is OleDbConnection, an OleDbCommand, and an OleDbDataReader. The While/End While code should then read through the data, before closing OleDbDataReader, and then OleDbConnection.

That structure is now reflected in my own code.

The examples I have see around look a lot like this:

dr = myCommand.ExecuteReader()
     While dr.Read()
     'reading from the datareader
      MessageBox.Show("colname1" & dr(0).ToString())
      'displaying the data from the table
      End While
      dr.Close()


I probably need to use something like this
C#
("colname1" & 
dr(0).ToString())
from the example above, but I don't want the code to display anything - only to log me on.

As I said earlier, the code I initially posted doesn't actually 'read' the rows, does it?
GeneralRe: Form not sending Pin
Richard MacCutchan4-May-16 20:51
mveRichard MacCutchan4-May-16 20:51 
GeneralRe: Form not sending Pin
Member 87616675-May-16 0:04
Member 87616675-May-16 0:04 
GeneralRe: Form not sending Pin
Richard MacCutchan5-May-16 0:13
mveRichard MacCutchan5-May-16 0:13 
GeneralRe: Form not sending Pin
Member 87616675-May-16 4:14
Member 87616675-May-16 4:14 
GeneralRe: Form not sending Pin
Richard MacCutchan5-May-16 5:04
mveRichard MacCutchan5-May-16 5:04 
AnswerRe: Form not sending Pin
Richard Deeming4-May-16 7:29
mveRichard Deeming4-May-16 7:29 
GeneralRe: Form not sending Pin
Member 87616674-May-16 8:05
Member 87616674-May-16 8:05 
Questionhi experts..im using AutoMapper for store procedure getting an error pls help Pin
sunil32-May-16 19:16
sunil32-May-16 19:16 
QuestionChat Client Programming Pin
MD_AS2-May-16 5:25
MD_AS2-May-16 5:25 
AnswerRe: Chat Client Programming Pin
Nathan Minier3-May-16 1:51
professionalNathan Minier3-May-16 1:51 
AnswerRe: Chat Client Programming Pin
aarif moh shaikh4-May-16 2:16
professionalaarif moh shaikh4-May-16 2:16 
QuestionDelete the Custom Control on Submit Button in ASP.Net Pin
Amit Kumar (India)2-May-16 2:05
Amit Kumar (India)2-May-16 2:05 
AnswerRe: Delete the Custom Control on Submit Button in ASP.Net Pin
F-ES Sitecore2-May-16 22:48
professionalF-ES Sitecore2-May-16 22:48 
GeneralRe: Delete the Custom Control on Submit Button in ASP.Net Pin
Amit Kumar (India)2-May-16 23:32
Amit Kumar (India)2-May-16 23:32 
GeneralRe: Delete the Custom Control on Submit Button in ASP.Net Pin
F-ES Sitecore3-May-16 0:07
professionalF-ES Sitecore3-May-16 0:07 
QuestionWhy is the Repeater Control Uploads... Pin
Vimalsoft(Pty) Ltd29-Apr-16 6:12
professionalVimalsoft(Pty) Ltd29-Apr-16 6:12 
AnswerRe: Why is the Repeater Control Uploads... Pin
Richard Deeming29-Apr-16 7:03
mveRichard Deeming29-Apr-16 7:03 

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.