16,005,491 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Atta Ur Rahman 118 (Top 29 by date)
Atta Ur Rahman 118
23-Mar-19 9:02am
View
Thanks.
Atta Ur Rahman 118
23-Mar-19 9:02am
View
Thank You Sir. It Works. My database is connected to my Project.
Atta Ur Rahman 118
1-May-15 8:50am
View
private void bt_requesting_Click(object sender, EventArgs e)
{
string requestappoint = combo_requstinpersonappoint.SelectedItem.ToString();
string requestpersonname = tb_requestingpersnname.Text.Trim();
string relation = tb_relation.Text.Trim();
string patientname = tb_patntnmae.Text.Trim();
string adres = tb_address.Text.Trim();
string city = tb_city.Text.Trim();
string cell = tb_cell.Text.Trim();
string patienttype = comboBox_patienttype.SelectedItem.ToString();
string apointtype = comboBox_appointtype.SelectedItem.ToString();
DateTime date = DateTime.Parse(desirdate.EditValue.ToString());
DateTime time = DateTime.Parse(desiretime.EditValue.ToString());
string insert = string.Format("insert into appointment values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}')", requestappoint, requestpersonname, relation, patientname, adres, city, cell, patienttype, patienttype, desirdate, desiretime);
SqlCommand cmd = new SqlCommand(insert, dbcs.open());
cmd.ExecuteNonQuery();
MessageBox.Show("Request Complete");
}
code is this.
I think the error is in this line (DateTime time = DateTime.Parse(desiretime.EditValue.ToString());)
Atta Ur Rahman 118
1-May-15 8:49am
View
private void bt_requesting_Click(object sender, EventArgs e)
{
string requestappoint = combo_requstinpersonappoint.SelectedItem.ToString();
string requestpersonname = tb_requestingpersnname.Text.Trim();
string relation = tb_relation.Text.Trim();
string patientname = tb_patntnmae.Text.Trim();
string adres = tb_address.Text.Trim();
string city = tb_city.Text.Trim();
string cell = tb_cell.Text.Trim();
string patienttype = comboBox_patienttype.SelectedItem.ToString();
string apointtype = comboBox_appointtype.SelectedItem.ToString();
DateTime date = DateTime.Parse(desirdate.EditValue.ToString());
DateTime time = DateTime.Parse(desiretime.EditValue.ToString());
string insert = string.Format("insert into appointment values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}')", requestappoint, requestpersonname, relation, patientname, adres, city, cell, patienttype, patienttype, desirdate, desiretime);
SqlCommand cmd = new SqlCommand(insert, dbcs.open());
cmd.ExecuteNonQuery();
MessageBox.Show("Request Complete");
}
Code is this
Atta Ur Rahman 118
1-May-15 8:24am
View
private void bt_requesting_Click(object sender, EventArgs e)
{
string requestappoint = combo_requstinpersonappoint.SelectedItem.ToString();
string requestpersonname = tb_requestingpersnname.Text.Trim();
string relation = tb_relation.Text.Trim();
string patientname = tb_patntnmae.Text.Trim();
string adres = tb_address.Text.Trim();
string city = tb_city.Text.Trim();
string cell = tb_cell.Text.Trim();
string patienttype = comboBox_patienttype.SelectedItem.ToString();
string apointtype = comboBox_appointtype.SelectedItem.ToString();
DateTime date = DateTime.Parse(desirdate.EditValue.ToString());
DateTime time = DateTime.Parse(desiretime.EditValue.ToString());
string insert = string.Format("insert into appointment values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}')", requestappoint, requestpersonname, relation, patientname, adres, city, cell, patienttype, patienttype, desirdate, desiretime);
SqlCommand cmd = new SqlCommand(insert, dbcs.open());
cmd.ExecuteNonQuery();
MessageBox.Show("Request Complete");
}
Sir it is Full Code
Atta Ur Rahman 118
1-May-15 8:21am
View
The error now come is this "An explicit value for the identity column in table 'appointment' can only be specified when a column list is used and IDENTITY_INSERT is ON."
Atta Ur Rahman 118
1-May-15 8:10am
View
Sir now this error come to me (An explicit value for the identity column in table 'appointment' can only be specified when a column list is used and IDENTITY_INSERT is ON.)
Atta Ur Rahman 118
1-May-15 8:09am
View
I enter only time... plz write me only about time not date...
Atta Ur Rahman 118
1-May-15 8:08am
View
Sir it is like DateTime.Parse(desiretime.EditValue.ToString()); desir time time is name of time which give to it.
Atta Ur Rahman 118
30-Apr-15 15:37pm
View
Thank you sir!
Atta Ur Rahman 118
30-Apr-15 15:28pm
View
or disable list of item in 2nd combobox by clicking or select "New" in 1st combobox
Atta Ur Rahman 118
30-Apr-15 15:26pm
View
I mean that how the 2nd combobox will be disable if i click "New" in the 1st combobox.
Atta Ur Rahman 118
30-Apr-15 15:24pm
View
Combobox type in database is (Nvarchar)...
Atta Ur Rahman 118
30-Apr-15 15:17pm
View
I mean that when i select in first combobox( Type of Patient) "New" the 2nd Combobox (Type of Appointement )Disable And if i select in first combobox " Existing" it will be enable.
Atta Ur Rahman 118
30-Apr-15 15:01pm
View
Sir another question is this that in this form i have two comboboxes. Both have two values. 1st is for patient type and another is for appointment type. In pat... type item are New and existing and apoint type has Follow up and new problem. I say that when i select in the first comboobx "New" the another combobox disable automatically.
Atta Ur Rahman 118
30-Apr-15 14:49pm
View
Thank you sir!
Atta Ur Rahman 118
7-Nov-14 10:50am
View
yes sir!
Atta Ur Rahman 118
7-Nov-14 10:32am
View
Yes sir! 3 or 4 hour it is correct it don't give the error like this
Atta Ur Rahman 118
7-Nov-14 10:31am
View
Yes sir! 3 or 4 hour it is correct it don't give the error like this.
Atta Ur Rahman 118
9-Jun-14 2:23am
View
what is the code for to change password
Atta Ur Rahman 118
7-Jun-14 1:18am
View
i don't know the query
Atta Ur Rahman 118
12-Mar-14 0:06am
View
Thank you sir jee!!!!!
Atta Ur Rahman 118
30-Jan-14 3:11am
View
Automatic timetable means that it is fully dynamic.Name of department will be inserted and updated.Name number email will be added in this. Information will be sent through email or mobile to faculty member of their class and where is his class , campus or classroom number
Morning session and evening session Number of classrooms will added that how many classrooms are available to this department
Atta Ur Rahman 118
29-Jan-14 12:18pm
View
thank u sir its really a good answer.
Atta Ur Rahman 118
29-Jan-14 12:15pm
View
sorry frnd i will explain it tomorrow if u don't mind but u must help me in this ok
Atta Ur Rahman 118
29-Jan-14 11:52am
View
OK thanks
Atta Ur Rahman 118
29-Jan-14 11:51am
View
yes !!
will u help me or not
Atta Ur Rahman 118
29-Jan-14 11:15am
View
thanks
how i learn c# in short time
Atta Ur Rahman 118
29-Jan-14 10:52am
View
thanx but how i study this i have no ideas about it ?
Show More