Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
QuestionImplementing MVC architecture in Windows Form Pin
srikrishnakrishna murthy2-Oct-09 23:46
srikrishnakrishna murthy2-Oct-09 23:46 
AnswerRe: Implementing MVC architecture in Windows Form Pin
Christian Graus2-Oct-09 23:51
protectorChristian Graus2-Oct-09 23:51 
GeneralRe: Implementing MVC architecture in Windows Form Pin
srikrishnakrishna murthy3-Oct-09 0:17
srikrishnakrishna murthy3-Oct-09 0:17 
GeneralRe: Implementing MVC architecture in Windows Form Pin
Christian Graus3-Oct-09 10:54
protectorChristian Graus3-Oct-09 10:54 
QuestionC# Programming ? Pin
Dossa2-Oct-09 23:11
Dossa2-Oct-09 23:11 
AnswerRe: C# Programming ? Pin
nagendrathecoder2-Oct-09 23:13
nagendrathecoder2-Oct-09 23:13 
AnswerRe: C# Programming ? Pin
Christian Graus2-Oct-09 23:13
protectorChristian Graus2-Oct-09 23:13 
QuestionException....PLSSSS HELPPPP :(( Pin
linto_112-Oct-09 22:54
linto_112-Oct-09 22:54 
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[rnd].ToString(); 
datastring = book.ToCharArray();
}
access.Close();
convert();
}



Pleassssssss help!!!

Ξ:::...£!ΠŤØ...:::Ξ®
AnswerRe: Exception....PLSSSS HELPPPP :(( Pin
Christian Graus2-Oct-09 22:58
protectorChristian Graus2-Oct-09 22:58 
GeneralRe: Exception....PLSSSS HELPPPP :(( Pin
nagendrathecoder2-Oct-09 23:09
nagendrathecoder2-Oct-09 23:09 
GeneralRe: Exception....PLSSSS HELPPPP :(( Pin
linto_112-Oct-09 23:13
linto_112-Oct-09 23:13 
GeneralRe: Exception....PLSSSS HELPPPP :(( Pin
Christian Graus2-Oct-09 23:14
protectorChristian Graus2-Oct-09 23:14 
GeneralRe: Exception....PLSSSS HELPPPP :(( Pin
nagendrathecoder2-Oct-09 23:15
nagendrathecoder2-Oct-09 23:15 
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 
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 

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.