Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bitmap PixelFormat GetPixel Pin
Dave1234564-Jun-04 8:22
Dave1234564-Jun-04 8:22 
GeneralRSS reader help Pin
MeterMan29-May-04 14:02
MeterMan29-May-04 14:02 
GeneralRe: RSS reader help Pin
MeterMan30-May-04 8:11
MeterMan30-May-04 8:11 
GeneralTreeView.text Pin
Ammar Ben Hadj Amor29-May-04 10:35
professionalAmmar Ben Hadj Amor29-May-04 10:35 
GeneralRe: TreeView.text Pin
Aaron Eldreth29-May-04 11:04
Aaron Eldreth29-May-04 11:04 
GeneralFrom double to Date Pin
Christer Claesson29-May-04 7:03
Christer Claesson29-May-04 7:03 
GeneralRe: From double to Date Pin
Mazdak29-May-04 10:22
Mazdak29-May-04 10:22 
GeneralRe: From double to Date Pin
Dave Kreskowiak29-May-04 14:48
mveDave Kreskowiak29-May-04 14:48 
GeneralRe: From double to Date Pin
Anonymous30-May-04 0:22
Anonymous30-May-04 0:22 
GeneralExecutable Pin
garyellis529-May-04 6:30
garyellis529-May-04 6:30 
GeneralRe: Executable Pin
Nnamdi Onyeyiri29-May-04 9:01
Nnamdi Onyeyiri29-May-04 9:01 
GeneralBinary Resource Pin
Chernobog_29-May-04 2:43
Chernobog_29-May-04 2:43 
GeneralA question about move PictureBox Pin
Member 94012528-May-04 21:39
Member 94012528-May-04 21:39 
GeneralRe: A question about move PictureBox Pin
Aaron Eldreth29-May-04 3:01
Aaron Eldreth29-May-04 3:01 
GeneralRe: A question about move PictureBox Pin
MeterMan29-May-04 14:08
MeterMan29-May-04 14:08 
GeneralRe: A question about move PictureBox Pin
Member 94012529-May-04 23:58
Member 94012529-May-04 23:58 
Generaldatareader in asp.net using c# Pin
HowRU28-May-04 19:36
HowRU28-May-04 19:36 
Hi All,
Can anybody help me?....
I am using a datareader to read from the database, i have the select query for this & reading the contents of the table ok...
I am getting the correct output using a datareader for the datagrid ....as....

DGShow.DataSource=dread;
DGShow.DataBind();

...but i want to put the same contains in the textbox also....but whenever i read the contains i am getting this error message....
Exception Details: System.InvalidOperationException: Invalid attempt to read when no data is present.
the code is......

while(dread.Read())
{
txtEmpID.Text=dread.GetString(0);
txtEmpName.Text =dread.GetString(1);
txtcity.Text=dread.GetString(2);
txtphone.Text=dread.GetInt32(3);
}

as i am not sure that i m on right track please help me..
thanks


GeneralRe: datareader in asp.net using c# Pin
Mazdak28-May-04 20:05
Mazdak28-May-04 20:05 
GeneralRe: datareader in asp.net using c# Pin
Dave Kreskowiak29-May-04 14:35
mveDave Kreskowiak29-May-04 14:35 
QuestionHow to decide if a Point is on a curve Pin
TaoLi28-May-04 16:38
TaoLi28-May-04 16:38 
AnswerRe: How to decide if a Point is on a curve Pin
Nathan Blomquist28-May-04 17:22
Nathan Blomquist28-May-04 17:22 
GeneralRe: How to decide if a Point is on a curve Pin
TaoLi29-May-04 16:13
TaoLi29-May-04 16:13 
GeneralRe: How to decide if a Point is on a curve Pin
TaoLi29-May-04 17:39
TaoLi29-May-04 17:39 
GeneralRe: How to decide if a Point is on a curve Pin
Nathan Blomquist30-May-04 4:11
Nathan Blomquist30-May-04 4:11 
GeneralRe: How to decide if a Point is on a curve Pin
adelboy11-May-09 8:27
adelboy11-May-09 8: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.