我已经写了 SQL 存储过程选择代码 [代码] From ---- Where ---
现在对于某些情况,我想要那个代码列,但对于某些我不想要那个。我怎么能做到这一点?
代码 :-
DataTable dtOutput= /Some function which return Datatable (accpet parameters as well for selection)
Table tOutput = / Some Function Which Converts Datatable to Table (For displaying it in HTML)
if (sTicketStatus == "0")
{
// Normal Statement which select all column coming from sql stored procedure
}
else
{
foreach (TableRow trOutput in tOutput.Rows)
{
// What to write Here ?
}
}
Page.Controls.Add(tOutput);