Click here to Skip to main content
15,896,442 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: no mails in mailroot when i send the mail Pin
CooperWu24-Aug-06 0:37
CooperWu24-Aug-06 0:37 
QuestionOptional Prameter Pin
iprasad00723-Aug-06 20:44
iprasad00723-Aug-06 20:44 
AnswerRe: Optional Prameter Pin
Christian Graus23-Aug-06 21:12
protectorChristian Graus23-Aug-06 21:12 
QuestionRe: Optional Prameter Pin
iprasad00723-Aug-06 23:13
iprasad00723-Aug-06 23:13 
AnswerRe: Optional Prameter Pin
Christian Graus23-Aug-06 23:19
protectorChristian Graus23-Aug-06 23:19 
GeneralRe: Optional Prameter Pin
iprasad00723-Aug-06 23:42
iprasad00723-Aug-06 23:42 
GeneralRe: Optional Prameter Pin
Christian Graus24-Aug-06 0:16
protectorChristian Graus24-Aug-06 0:16 
GeneralRe: Optional Prameter [modified] Pin
iprasad00724-Aug-06 0:36
iprasad00724-Aug-06 0:36 
GeneralRe: Optional Prameter Pin
Martin#24-Aug-06 1:06
Martin#24-Aug-06 1:06 
GeneralRe: Optional Prameter [modified] Pin
Christian Graus24-Aug-06 1:11
protectorChristian Graus24-Aug-06 1:11 
GeneralRe: Optional Prameter Pin
iprasad00724-Aug-06 2:01
iprasad00724-Aug-06 2:01 

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.