Click here to Skip to main content
15,905,614 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unsubscribing all event listeners Pin
beatles169225-Aug-06 2:56
beatles169225-Aug-06 2:56 
GeneralRe: Unsubscribing all event listeners [modified] Pin
sjembek25-Aug-06 4:09
sjembek25-Aug-06 4:09 
GeneralRe: Unsubscribing all event listeners Pin
beatles169225-Aug-06 12:16
beatles169225-Aug-06 12:16 
QuestionC# and SQL server problem Pin
William Ten Broek23-Aug-06 23:49
William Ten Broek23-Aug-06 23:49 
QuestionRe: C# and SQL server problem Pin
CooperWu24-Aug-06 0:42
CooperWu24-Aug-06 0:42 
AnswerRe: C# and SQL server problem Pin
William Ten Broek24-Aug-06 11:27
William Ten Broek24-Aug-06 11:27 
GeneralRe: C# and SQL server problem [modified] Pin
CooperWu24-Aug-06 16:34
CooperWu24-Aug-06 16:34 
AnswerRe: C# and SQL server problem Pin
~~~Johnny~~~24-Aug-06 1:47
~~~Johnny~~~24-Aug-06 1:47 
Questionint to String conversion Pin
Brendan Vogt23-Aug-06 23:49
Brendan Vogt23-Aug-06 23:49 
AnswerRe: int to String conversion Pin
William Ten Broek23-Aug-06 23:55
William Ten Broek23-Aug-06 23:55 
AnswerRe: int to String conversion Pin
CooperWu23-Aug-06 23:59
CooperWu23-Aug-06 23:59 
AnswerRe: int to String conversion Pin
ayyp24-Aug-06 0:30
ayyp24-Aug-06 0:30 
AnswerRe: int to String conversion Pin
Guffa24-Aug-06 2:50
Guffa24-Aug-06 2:50 
GeneralRe: int to String conversion Pin
Brendan Vogt24-Aug-06 3:31
Brendan Vogt24-Aug-06 3:31 
GeneralRe: int to String conversion Pin
Guffa24-Aug-06 12:20
Guffa24-Aug-06 12:20 
GeneralRe: int to String conversion Pin
Brendan Vogt24-Aug-06 22:37
Brendan Vogt24-Aug-06 22:37 
AnswerRe: int to String conversion Pin
Guffa25-Aug-06 9:31
Guffa25-Aug-06 9:31 
GeneralRe: int to String conversion Pin
Brendan Vogt27-Aug-06 20:34
Brendan Vogt27-Aug-06 20:34 
QuestionDisplay a on the datagrid [modified] Pin
Mamphekgo23-Aug-06 22:37
Mamphekgo23-Aug-06 22:37 
Hi.i did a project a that records a transactions that customer make daily something like Bank,so i want to display only transactions that were made by a specific customer using his account number on the datagrid.the problem is it doesn't display the record i that requested it to display only

so i did something like this.

public bool DisplayTrans(string CBarcode2)
{
try
{

conn1= new SqlConnection(ConString);
cmdDisplay1= new SqlCommand();
daDisplay = new SqlDataAdapter();
dsDisplay = new DataSet();

cmdDisplay1.Connection = conn1;
daDisplay.SelectCommand = cmdDisplay1;
cmdDisplay1.CommandText = "SELECT CustomerName,ProductName,Price,EventName,BoughtDate,BoughtTime FROM Transactions WHERE Barcode2 =@Barcode2 ";

SqlParameter Bar = new SqlParameter();
Bar.ParameterName = "@Barcode2";
Bar.Direction = System.Data.ParameterDirection.Input;
Bar.Value = CBarcode2;
cmdDisplay1.Parameters.Add(Bar);
daDisplay.Fill(dsDisplay,"Transactions");
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
return false;
}
return true;



-- modified at 5:31 Thursday 24th August, 2006
AnswerRe: Display a on the datagrid Pin
Christian Graus23-Aug-06 22:45
protectorChristian Graus23-Aug-06 22:45 
JokeRe: Display a on the datagrid Pin
Not Active24-Aug-06 2:28
mentorNot Active24-Aug-06 2:28 
GeneralRe: Display a on the datagrid Pin
Muammar©10-Sep-06 0:31
Muammar©10-Sep-06 0:31 
Questionno mails in mailroot when i send the mail Pin
ayyp23-Aug-06 21:09
ayyp23-Aug-06 21:09 
AnswerRe: no mails in mailroot when i send the mail Pin
CooperWu24-Aug-06 0:04
CooperWu24-Aug-06 0:04 
GeneralRe: no mails in mailroot when i send the mail Pin
ayyp24-Aug-06 0:25
ayyp24-Aug-06 0:25 

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.