Click here to Skip to main content
15,390,952 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help With Delegates Pin
Stefano Manni10-Oct-12 0:00
MemberStefano Manni10-Oct-12 0:00 
Questionhow to use subtract operation in windows form applicaion Pin
sri apple9-Oct-12 1:58
Membersri apple9-Oct-12 1:58 
AnswerRe: how to use subtract operation in windows form applicaion Pin
Pete O'Hanlon9-Oct-12 2:10
mvaPete O'Hanlon9-Oct-12 2:10 
GeneralRe: how to use subtract operation in windows form applicaion PinPopular
Eddy Vluggen9-Oct-12 2:47
professionalEddy Vluggen9-Oct-12 2:47 
GeneralRe: how to use subtract operation in windows form applicaion Pin
Pete O'Hanlon9-Oct-12 3:06
mvaPete O'Hanlon9-Oct-12 3:06 
GeneralRe: how to use subtract operation in windows form applicaion Pin
Shameel9-Oct-12 4:56
professionalShameel9-Oct-12 4:56 
AnswerRe: how to use subtract operation in windows form applicaion Pin
Eddy Vluggen9-Oct-12 2:46
professionalEddy Vluggen9-Oct-12 2:46 
AnswerRe: how to use subtract operation in windows form applicaion Pin
KiranKumar Roy14-Oct-12 1:47
MemberKiranKumar Roy14-Oct-12 1:47 
Dear,
May be you need something like below code..
C#
protected void UpdateData()
        {
            int intQuantity = 0;
            SqlConnection con = new SqlConnection("Your Connectionstring here");
            SqlCommand cmd = new SqlCommand("update product set quantity=@Quantity where productname=@Product", con); ;
            cmd.CommandType = CommandType.Text;
            cmd.Parameters.AddWithValue("@Quantity", intQuantity - 10);
            cmd.Parameters.AddWithValue("@Product", "Sugar");
            cmd.ExecuteNonQuery();
        }

KiranKumar Roy

QuestionDatacache Pin
nitin_ion9-Oct-12 0:25
Membernitin_ion9-Oct-12 0:25 
AnswerRe: Datacache Pin
Pete O'Hanlon9-Oct-12 0:40
mvaPete O'Hanlon9-Oct-12 0:40 
GeneralRe: Datacache Pin
nitin_ion9-Oct-12 17:15
Membernitin_ion9-Oct-12 17:15 
GeneralRe: Datacache Pin
Pete O'Hanlon9-Oct-12 20:18
mvaPete O'Hanlon9-Oct-12 20:18 
GeneralRe: Datacache Pin
Pete O'Hanlon9-Oct-12 22:01
mvaPete O'Hanlon9-Oct-12 22:01 
GeneralRe: Datacache Pin
nitin_ion9-Oct-12 23:15
Membernitin_ion9-Oct-12 23:15 
GeneralRe: Datacache Pin
Pete O'Hanlon9-Oct-12 23:58
mvaPete O'Hanlon9-Oct-12 23:58 
QuestionGenereate XML file from sql in C# Pin
Md. Rayhan Kabir8-Oct-12 18:17
MemberMd. Rayhan Kabir8-Oct-12 18:17 
AnswerRe: Genereate XML file from sql in C# Pin
Sarath C8-Oct-12 22:42
MemberSarath C8-Oct-12 22:42 
Questionhelp in solving a problem Pin
michae1108-Oct-12 6:24
Membermichae1108-Oct-12 6:24 
AnswerRe: help in solving a problem Pin
Richard MacCutchan8-Oct-12 6:57
mveRichard MacCutchan8-Oct-12 6:57 
AnswerRe: help in solving a problem Pin
Dave Kreskowiak8-Oct-12 11:00
mveDave Kreskowiak8-Oct-12 11:00 
AnswerRe: help in solving a problem Pin
Abhinav S8-Oct-12 17:37
MemberAbhinav S8-Oct-12 17:37 
AnswerRe: help in solving a problem Pin
Paul Conrad10-Oct-12 7:46
professionalPaul Conrad10-Oct-12 7:46 
QuestionUsing a datagridview to maintain SQL server database table Pin
Member 80860588-Oct-12 1:35
MemberMember 80860588-Oct-12 1:35 
QuestionC# select part of file name Pin
classy_dog7-Oct-12 16:00
Memberclassy_dog7-Oct-12 16:00 
AnswerRe: C# select part of file name Pin
Abhinav S7-Oct-12 17:47
MemberAbhinav S7-Oct-12 17:47 

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.