Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 6:53
Keshav Shivhare7-Dec-14 6:53 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard MacCutchan7-Dec-14 7:00
mveRichard MacCutchan7-Dec-14 7:00 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 7:47
Keshav Shivhare7-Dec-14 7:47 
AnswerRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu7-Dec-14 13:08
professionalsyed shanu7-Dec-14 13:08 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare8-Dec-14 3:12
Keshav Shivhare8-Dec-14 3:12 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu8-Dec-14 13:11
professionalsyed shanu8-Dec-14 13:11 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu8-Dec-14 13:16
professionalsyed shanu8-Dec-14 13:16 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard Deeming9-Dec-14 1:51
mveRichard Deeming9-Dec-14 1:51 
Your code is vulnerable to SQL Injection[^].

NEVER use string concatenation to build a SQL query. ALWAYS use a parameterized query.
C#
using (SqlConnection con = new SqlConnection("Data Source=(local);Initial Catalog=vediocon;Integrated Security=True"))
using (SqlCommand cmd = new SqlCommand("insert into Temptransaction (date, dealercode, amounttranfer, actualamount, transactioncode) values (@date, @dealercode, @amounttranfer, @actualamount, @transactioncode)", con))
{
    cmd.Parameters.AddWithValue("@date", row.Cells[1]);
    cmd.Parameters.AddWithValue("@dealercode", row.Cells[2]);
    cmd.Parameters.AddWithValue("@amounttranfer", row.Cells[3]);
    cmd.Parameters.AddWithValue("@actualamount", row.Cells[4]);
    cmd.Parameters.AddWithValue("@transactioncode", row.Cells[5]);

    con.Open();
    cmd.ExecuteNonQuery();
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
aartimishra9-Dec-14 23:30
aartimishra9-Dec-14 23:30 
QuestionHow can I Create windows signup form application from html codes ? Pin
madleet6-Dec-14 16:51
madleet6-Dec-14 16:51 
QuestionRe: How can I Create windows signup form application from html codes ? Pin
Richard MacCutchan6-Dec-14 21:23
mveRichard MacCutchan6-Dec-14 21:23 
AnswerRe: How can I Create windows signup form application from html codes ? Pin
BillWoodruff7-Dec-14 2:37
professionalBillWoodruff7-Dec-14 2:37 
QuestionIndividual SubItem Double-click in Detail ListView Pin
Simmerliner6-Dec-14 7:17
Simmerliner6-Dec-14 7:17 
AnswerRe: Individual SubItem Double-click in Detail ListView Pin
Ravi Bhavnani6-Dec-14 11:51
professionalRavi Bhavnani6-Dec-14 11:51 
GeneralRe: Individual SubItem Double-click in Detail ListView Pin
Simmerliner6-Dec-14 13:34
Simmerliner6-Dec-14 13:34 
Questionwindows store app streaming webcam Pin
blqck6-Dec-14 4:28
blqck6-Dec-14 4:28 
GeneralMessage Closed Pin
5-Dec-14 8:02
ItsElio5-Dec-14 8:02 
GeneralRe: Community Project Pin
OriginalGriff5-Dec-14 8:12
mveOriginalGriff5-Dec-14 8:12 
QuestionProblems adding an .NET 3.5 dll to a .NET 2.0 application Pin
Stephen Holdorf5-Dec-14 7:20
Stephen Holdorf5-Dec-14 7:20 
AnswerRe: Problems adding an .NET 3.5 dll to a .NET 2.0 application Pin
OriginalGriff5-Dec-14 8:09
mveOriginalGriff5-Dec-14 8:09 
GeneralRe: Problems adding an .NET 3.5 dll to a .NET 2.0 application Pin
Stephen Holdorf5-Dec-14 9:13
Stephen Holdorf5-Dec-14 9:13 
GeneralRe: Problems adding an .NET 3.5 dll to a .NET 2.0 application Pin
OriginalGriff5-Dec-14 21:39
mveOriginalGriff5-Dec-14 21:39 
QuestionWindows Service Interface Pin
milo-xml5-Dec-14 3:45
professionalmilo-xml5-Dec-14 3:45 
GeneralRe: Windows Service Interface Pin
PIEBALDconsult5-Dec-14 3:54
mvePIEBALDconsult5-Dec-14 3:54 
GeneralRe: Windows Service Interface Pin
milo-xml8-Dec-14 2:12
professionalmilo-xml8-Dec-14 2:12 

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.