Click here to Skip to main content
15,889,820 members
Home / Discussions / C#
   

C#

 
QuestionListView Context Menu Pin
kanchoette26-Aug-09 1:43
kanchoette26-Aug-09 1:43 
AnswerRe: ListView Context Menu Pin
stancrm26-Aug-09 1:48
stancrm26-Aug-09 1:48 
GeneralRe: ListView Context Menu Pin
kanchoette26-Aug-09 1:49
kanchoette26-Aug-09 1:49 
QuestionProblem in connecting with SQL database on client machine Pin
Affan Toor26-Aug-09 1:29
Affan Toor26-Aug-09 1:29 
AnswerRe: Problem in connecting with SQL database on client machine Pin
Henry Minute26-Aug-09 3:48
Henry Minute26-Aug-09 3:48 
GeneralRe: Problem in connecting with SQL database on client machine Pin
Affan Toor26-Aug-09 21:39
Affan Toor26-Aug-09 21:39 
GeneralRe: Problem in connecting with SQL database on client machine Pin
Henry Minute27-Aug-09 0:04
Henry Minute27-Aug-09 0:04 
Questiongettin some error @ run time Pin
ankitjain111026-Aug-09 0:20
ankitjain111026-Aug-09 0:20 
string connection1 = ConfigurationManager.AppSettings["conn"];
OleDbConnection con1 = new OleDbConnection(connection1);
con1.Open();
OleDbDataAdapter da = new OleDbDataAdapter();
DataSet ds = new DataSet();


OleDbDataReader dr;

OleDbCommand cmd4 = new OleDbCommand("select count(*) from appointment where DOCTOR_NAME = '" + DropDownList1.SelectedItem + "' ";", con1);
dr = cmd4.ExecuteReader();
if (Convert.ToInt32(dr[0]) != 4)
TextBox4.Text = "hello";

am tryin this code but its showing error in the run time.
the error is
Exception Details: System.Data.OleDb.OleDbException: No value given for one or more required parameters.

Source Error:


Line 173:
Line 174: OleDbCommand cmd4 = new OleDbCommand("select count(*) from appointment where DOCTOR_NAME = '" + DropDownList1.SelectedItem + "' ", con1);
Line 175: dr = cmd4.ExecuteReader();
Line 176: if (Convert.ToInt32(dr[0]) != 4)
Line 177: TextBox4.Text = "hello";

can u help me out
AnswerRe: gettin some error @ run time Pin
Luc Pattyn26-Aug-09 0:29
sitebuilderLuc Pattyn26-Aug-09 0:29 
GeneralRe: gettin some error @ run time Pin
ankitjain111026-Aug-09 0:32
ankitjain111026-Aug-09 0:32 
GeneralRe: gettin some error @ run time Pin
Luc Pattyn26-Aug-09 0:35
sitebuilderLuc Pattyn26-Aug-09 0:35 
AnswerRe: gettin some error @ run time Pin
Blue_Boy26-Aug-09 0:45
Blue_Boy26-Aug-09 0:45 
GeneralRe: gettin some error @ run time Pin
ankitjain111026-Aug-09 0:58
ankitjain111026-Aug-09 0:58 
Questiondeploy shared assembly with application during setup Pin
Abdul Rahman Hamidy25-Aug-09 23:56
Abdul Rahman Hamidy25-Aug-09 23:56 
AnswerRe: deploy shared assembly with application during setup Pin
Keith Barrow26-Aug-09 0:29
professionalKeith Barrow26-Aug-09 0:29 
GeneralRe: deploy shared assembly with application during setup Pin
Abdul Rahman Hamidy26-Aug-09 1:04
Abdul Rahman Hamidy26-Aug-09 1:04 
QuestionC# Beginner needs help. Pin
LighthouseCall25-Aug-09 23:26
LighthouseCall25-Aug-09 23:26 
AnswerRe: C# Beginner needs help. Pin
stancrm25-Aug-09 23:36
stancrm25-Aug-09 23:36 
AnswerRe: C# Beginner needs help. Pin
benjymous25-Aug-09 23:36
benjymous25-Aug-09 23:36 
AnswerRe: C# Beginner needs help. Pin
Luc Pattyn25-Aug-09 23:42
sitebuilderLuc Pattyn25-Aug-09 23:42 
AnswerRe: C# Beginner needs help. Pin
kKamel26-Aug-09 0:02
kKamel26-Aug-09 0:02 
AnswerRe: C# Beginner needs help. Pin
Luc Pattyn26-Aug-09 0:24
sitebuilderLuc Pattyn26-Aug-09 0:24 
AnswerRe: C# Beginner needs help. Pin
DaveyM6926-Aug-09 0:28
professionalDaveyM6926-Aug-09 0:28 
AnswerRe: C# Beginner needs help. Pin
LighthouseCall26-Aug-09 3:32
LighthouseCall26-Aug-09 3:32 
QuestionAppending byte array to a byte array Pin
deep725-Aug-09 23:21
deep725-Aug-09 23:21 

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.