Click here to Skip to main content
15,923,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exception....PLSSSS HELPPPP Pin
linto_112-Oct-09 23:22
linto_112-Oct-09 23:22 
GeneralRe: Exception....PLSSSS HELPPPP Pin
linto_112-Oct-09 23:25
linto_112-Oct-09 23:25 
GeneralRe: Exception....PLSSSS HELPPPP Pin
nagendrathecoder2-Oct-09 23:28
nagendrathecoder2-Oct-09 23:28 
GeneralRe: Exception....PLSSSS HELPPPP Pin
Richard MacCutchan2-Oct-09 23:29
mveRichard MacCutchan2-Oct-09 23:29 
GeneralRe: Exception....PLSSSS HELPPPP Pin
Christian Graus2-Oct-09 23:57
protectorChristian Graus2-Oct-09 23:57 
GeneralRe: Exception....PLSSSS HELPPPP Pin
Richard MacCutchan2-Oct-09 23:27
mveRichard MacCutchan2-Oct-09 23:27 
GeneralRe: Exception....PLSSSS HELPPPP Pin
Christian Graus2-Oct-09 23:43
protectorChristian Graus2-Oct-09 23:43 
QuestionException in C# Pin
linto_112-Oct-09 22:11
linto_112-Oct-09 22:11 
HI,
Im gettin an exception saying "InvalidOperationException" nd it says "No data exists for the row/coloumn", for the following code, nd d exception results on the d line that has been underlined....please check d code nd help....plssss!!!!

int rnd;
int totalcount = 0;
Random SelectRandom = new Random();
OleDbConnection access = new OleDbConnection();
OleDbCommand accesscmd = new OleDbCommand();
OleDbDataReader reader;
if (combo_Category.Text == "Book")
{
string connectionstring = "Provider = Microsoft.Jet.OLEDB.4.0;
Data Source = |DataDirectory|\\HangmanDatabase.mdb";
access.ConnectionString = connectionstring;
access.Open();
accesscmd.CommandText = "Select * From Book";
accesscmd.Connection = access;
reader = accesscmd.ExecuteReader();
while (reader.Read())
{
totalcount = totalcount + 1;
}
if (reader.HasRows)
{
rnd = SelectRandom.Next(0,totalcount - 1);
book = reader[0].ToString();
datastring = book.ToCharArray();
}
access.Close();
convert();
}


Pleassssssss help!!!

Ξ:::...£!ΠŤØ...:::Ξ
AnswerRe: Exception in C# Pin
nagendrathecoder2-Oct-09 22:30
nagendrathecoder2-Oct-09 22:30 
GeneralRe: Exception in C# Pin
linto_112-Oct-09 22:43
linto_112-Oct-09 22:43 
GeneralRe: Exception in C# Pin
Christian Graus2-Oct-09 22:54
protectorChristian Graus2-Oct-09 22:54 
AnswerRe: Exception in C# Pin
nagendrathecoder2-Oct-09 22:55
nagendrathecoder2-Oct-09 22:55 
GeneralRe: Exception in C# Pin
Christian Graus2-Oct-09 23:00
protectorChristian Graus2-Oct-09 23:00 
GeneralRe: Exception in C# Pin
nagendrathecoder2-Oct-09 23:08
nagendrathecoder2-Oct-09 23:08 
GeneralRe: Exception in C# Pin
linto_112-Oct-09 23:10
linto_112-Oct-09 23:10 
GeneralRe: Exception in C# Pin
Christian Graus2-Oct-09 23:12
protectorChristian Graus2-Oct-09 23:12 
QuestionNamed Pipe Implementation Pin
AndyASPVB2-Oct-09 22:02
AndyASPVB2-Oct-09 22:02 
AnswerRe: Named Pipe Implementation Pin
geo_m6-Oct-09 3:53
geo_m6-Oct-09 3:53 
Questionserver/client help Pin
amaankhan2-Oct-09 20:52
amaankhan2-Oct-09 20:52 
AnswerRe: server/client help Pin
Xmen Real 2-Oct-09 21:02
professional Xmen Real 2-Oct-09 21:02 
GeneralRe: server/client help Pin
amaankhan2-Oct-09 21:14
amaankhan2-Oct-09 21:14 
AnswerRe: server/client help Pin
srikrishnakrishna murthy3-Oct-09 0:02
srikrishnakrishna murthy3-Oct-09 0:02 
GeneralRe: server/client help Pin
amaankhan3-Oct-09 4:34
amaankhan3-Oct-09 4:34 
QuestionStop app from stealing Focus Pin
discreetz2-Oct-09 15:37
discreetz2-Oct-09 15:37 
AnswerRe: Stop app from stealing Focus Pin
Christian Graus2-Oct-09 15:40
protectorChristian Graus2-Oct-09 15:40 

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.