Posted on: 5/17/2013 6:14:12 AM | Views : 221

My column name is Reportname and that contains data with reportnames.
When i debug a form that reportnames will be appear in that form.
Now, if i click on a report name something should happned. For that i wrote a query in c# side.
My problem is,
I have if else codition.
Like as below
if(cmd.Text == "ReportName") {
} else {
}
So, here if i am selecting the reportname my query should work.
When i had put a breakpoint control is going to else condition. Its not going to if condition.
Please see my below if else condtion
private SqlCommand CreateReportCommand(CommandObject cmdReport) { SqlCommand cmd = new SqlCommand(); if (cmd.CommandText == "uspDeals-report-New") { cmd.CommandText = cmdReport.Name; //cmd.CommandType = CommandType.StoredProcedure; if (cmdReport.TimeOut == 0) { cmd.CommandTimeout = DALCon ...

Go to the complete details ...