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
Why is this service branded with windows livetm?
Explain in what order a destructors is called.
How is the asp.net mvc architecture different from others? : asp.net mvc
Which is faster viewbag or viewdata?
What is the difference between the get method () and post method ()?
What is mvc in asp.net interview question? : Asp.Net MVC
Why Unload event of MasterPage Calls first in ASP.net ?
Describe the difference between inline and code behind - which is best in a?
Explain weak typing and strong typing.
What are Session states available and its Uses?
What is the use of web.config file?
How can exception be handled with out the use of try catch?
Explain page output caching?
Which methods validate all the controls on a page?
What is difference between view state and session state?