16,020,447 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 Visual Basic questions
View Javascript 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 Pallavi 24 (Top 9 by date)
Pallavi 24
3-Mar-17 9:52am
View
I did not use connection string.Actually modified ur code and I used following code:
SqlCommand cmd= con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText="UPDATE Books SET Quantity = Quantity + @QT WHERE Name = @NM AND Author = @AU";
cmd.Parameters.AddWithValue("@QT", qty);
cmd.Parameters.AddWithValue("@NM", txtBookName.Text);
cmd.Parameters.AddWithValue("@AU", txtBookAuthor.Text);
cmd.ExecuteNonQuery();
MessageBox.Show("Updated successfully");
con.Close();
Pallavi 24
3-Mar-17 9:22am
View
Thank you so much. I made changes and it is working now perfectly.
Pallavi 24
3-Mar-17 9:10am
View
The ConnectionString property has not been initialized.
I am getting this error.
Pallavi 24
13-Feb-17 5:01am
View
Conversion failed when converting the varchar value 'System.Windows.Forms.DataGridViewSelectedRowCollection' to data type int.
I get the above error when I use Update statement..
I used the below code,.....
cmd.CommandText = "Update IssueBooks set BookStatus='Returned' where IssueId='"+dataGridView1.SelectedRows+"' ";
I have used a grid view. Based on selection that the user does the table has to be updated..
Pallavi 24
8-Feb-17 23:47pm
View
If I create a procedure then how will the procedure be called when the button is called ?
Pallavi 24
8-Feb-17 23:42pm
View
Thank u for the help. But it did not work out.
Pallavi 24
8-Feb-17 23:41pm
View
The Quantity value should not exceed. I mean if Quantity has been entered as 10 by the librarian then after each increment Quantity value should not exceed 10.
10 is the limit, right.
Pallavi 24
8-Feb-17 5:25am
View
Thank u so much. It worked.
Pallavi 24
8-Feb-17 5:15am
View
private void returnDate_ValueChanged(object sender, EventArgs e)
{
DateTime dt = new DateTime();
dt.AddMonths(6);
}
This is what I tried. But did not put up
Show More