Answer Posted / krishnarao
i have to write a one example
sqlconnection con=new sqlconnection(" u can write
Connection string here);
sqlcommand cmd=new sqlcommand();
cmd.ConnectionString=con;
cmd.CommandText="u can write stored procedure name here";
cmd.CommandType=CommandType.StoredProcedure;
SqlDataReader dr;
dr=cmd.ExecuteReader();//the stored procedure will be
executed here.the out put parameters will be stored into
datareader.
TextBox.Text1=dr.GetValue(0).ToString();//get the output
values here.
TextBox.Text2=dr.GetValue(1).ToString();//get the output
values here.
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
What is difference between abstract class and an interface?
What is difference cookie and session?
What is custom events?
Where is the view state data stored?
Explain how can you debug your .net application?
What are server objects?
What is difference between or and orelse?
What are Session states available and its Uses?
What is a ashx file?
In the Repeater control which way you can edit?
What is the request flow used for asp.net mvc framework? : asp.net mvc
What is http only cookie?
What is enableviewstate in asp net?
Is it possible to migrate visual interdev design-time controls to asp.net?
How do I open an ashx file?