datareader
Extract from DataRow or DataReader with one function
I\'m looking for a solution for how to be able to extract dat开发者_Python百科a from a database when using either a DataRow and a DataReader with only one function (or one base function).[详细]
2023-03-12 05:32 分类:问答Displaying records in a table in asp.net
conn.Open(); TableRow r = new TableRow(); TableCell c = new TableCell(); SqlDataReader reader = comm.ExecuteReader();[详细]
2023-03-10 19:39 分类:问答Invalid attempt to call MetaData when reader is closed?
I\'m running an if else statement off of a datareader to query table d开发者_如何学编程ata and activate/de-activate some controls on a page. I implemented a using statement to automatically close the[详细]
2023-03-09 02:12 分类:问答Setting local variable through repeater and anchor or label
I have a repeater which fetches data from a database and shows some labels (or anchors). I have a local variable on this class which must be updated by the value retrieved from database. To cut the ma[详细]
2023-03-08 19:01 分类:问答How to map a DataReader to class properties and maintain performance?
Preamble: All data connection strings, connections, etc are created using DbProviderFactories. Code is mixed C# and VB.Net from[详细]
2023-03-08 11:04 分类:问答ado.net CommandBehavior.KeyInfo / getSchema method
Work on C# asp.net vs2008. with Reader = Command.ExecuteReader(CommandBehavior.KeyInfo) i try to get foreign keys , is there a way to get it ?[详细]
2023-03-08 10:08 分类:问答Can't get RhinoMock to iterate throug a DataReader
I am trying to mock IDataReader with RhinoMocks, but I am having a hard time making it iterate through the DataRows. Here is what I have done so far:[详细]
2023-03-08 04:13 分类:问答Cannot use SqlCeDataReader.HasRow
[EDIT] I changed my开发者_StackOverflow社区 code according to the your answers. But now I get another error:[详细]
2023-03-07 13:17 分类:问答Help with a program that needs to read a data file and output scores
So I am working on this program (obviously homework): In a diving competition, each contestant\'s score is calculated by dropping the lowest and highest scores[详细]
2023-03-07 02:01 分类:问答Applying sorting on datareader while binding to dropdown in asp
Currently I am facing a problem for sorting datareader contents alphabetically. The scenario is I have a datareader that read开发者_JAVA百科s department name from database. Then, in while loop, I am b[详细]
2023-03-06 00:15 分类:问答