Click here to Skip to main content
16,020,673 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Here Is my Code. And error of ' Go_to_Display has invalid arguments. please answer me please
SqlDataReader rs = command.ExecuteReader();
        rs.Read();

        Go_to_Display(rs[0]);

        conn.Close();
        rs = null;
        command = null;
        conn = null;
Posted
Updated 11-Jun-15 1:42am
v2
Comments
Ralf Meier 11-Jun-15 7:33am    
Did "Go_To_Display" awaits an object as type ?
Please check which type is needed ... (perhaps again you need to use .toString ...?)
[no name] 11-Jun-15 7:34am    
Go to the definition for Go_to_Display method and look at the definition and then supply the correct type and number of parameters.

1 solution

As you have been told before today, your rs does not contain strings: so you need to convert the value to whatever type your method expects.

Please try to think about what you are doing, and what you have already been told in other answers: you are in danger of becoming a "Help Vampire" who doesn't try to solve his own problems...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900