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

C#

 
QuestionHow to add table's content from one to another table Pin
dwark10616-Sep-09 16:21
dwark10616-Sep-09 16:21 
AnswerRe: How to add table's content from one to another table Pin
Christian Graus16-Sep-09 17:27
protectorChristian Graus16-Sep-09 17:27 
GeneralRe: How to add table's content from one to another table Pin
dwark10616-Sep-09 18:09
dwark10616-Sep-09 18:09 
GeneralRe: How to add table's content from one to another table Pin
dwark10616-Sep-09 18:24
dwark10616-Sep-09 18:24 
GeneralRe: How to add table's content from one to another table Pin
N a v a n e e t h16-Sep-09 18:41
N a v a n e e t h16-Sep-09 18:41 
QuestionSystem.Drawing.Printing Issue Pin
Jason McBurney16-Sep-09 11:58
Jason McBurney16-Sep-09 11:58 
QuestionEntity-collection Pin
Oceanic67916-Sep-09 10:43
Oceanic67916-Sep-09 10:43 
AnswerRe: Entity-collection Pin
Not Active16-Sep-09 11:36
mentorNot Active16-Sep-09 11:36 
I prefer Necromancer rather than Wizard

t = new Selected_DocType( userID<br />
, password<br />
, (string)cmd.Parameters["DocType"].Value<br />
, (string)cmd.Parameters["FileShortDescription"].Value<br />


Of course you are only getting one object because that is all you are creating.

You also need to call ExecuteReader and iterate through the results returned to create all the objects. Learn the difference between ExecuteNonQuery and ExecuteReader and the other methods for SqlCommand


only two letters away from being an asset

GeneralRe: Entity-collection Pin
Oceanic67917-Sep-09 3:08
Oceanic67917-Sep-09 3:08 
GeneralRe: Entity-collection Pin
Not Active17-Sep-09 4:07
mentorNot Active17-Sep-09 4:07 
GeneralRe: Entity-collection Pin
Oceanic67917-Sep-09 4:19
Oceanic67917-Sep-09 4:19 
AnswerRe: Entity-collection Pin
Christian Graus16-Sep-09 11:38
protectorChristian Graus16-Sep-09 11:38 
GeneralRe: Entity-collection Pin
Oceanic67917-Sep-09 3:17
Oceanic67917-Sep-09 3:17 
AnswerRe: Entity-collection Pin
Oceanic67917-Sep-09 4:25
Oceanic67917-Sep-09 4:25 
QuestionExample of Disconneted using data Adapter and Stored Procedure Pin
amaankhan16-Sep-09 7:55
amaankhan16-Sep-09 7:55 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
Not Active16-Sep-09 8:03
mentorNot Active16-Sep-09 8:03 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
Manas Bhardwaj16-Sep-09 8:42
professionalManas Bhardwaj16-Sep-09 8:42 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
EliottA16-Sep-09 9:27
EliottA16-Sep-09 9:27 
JokeRe: Example of Disconneted using data Adapter and Stored Procedure Pin
Manas Bhardwaj16-Sep-09 10:20
professionalManas Bhardwaj16-Sep-09 10:20 
AnswerRe: Example of Disconneted using data Adapter and Stored Procedure Pin
foxjazzdude16-Sep-09 9:57
foxjazzdude16-Sep-09 9:57 
QuestionI am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
amaankhan16-Sep-09 7:49
amaankhan16-Sep-09 7:49 
AnswerRe: I am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
Not Active16-Sep-09 8:03
mentorNot Active16-Sep-09 8:03 
GeneralRe: I am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
amaankhan16-Sep-09 8:19
amaankhan16-Sep-09 8:19 
GeneralRe: I am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
Dave Kreskowiak16-Sep-09 8:23
mveDave Kreskowiak16-Sep-09 8:23 
AnswerRe: I am working on software in that i need to print certain things....... which is the easy way........ kindly help Pin
N a v a n e e t h16-Sep-09 8:05
N a v a n e e t h16-Sep-09 8:05 

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.