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 a 1x1 pixel?
what is the difference between response.write() and response.output.write()?
What is owin authentication?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
What is the sequence in which ASP.NET events are processed?
What are the different types of validation controls provided in ASP.NET?
What is postback pixel?
What is the benefit of WebAPI over WCF?
What is http session state?
To add a hyperlink column to the DataGrid which tag is used ?
What is ispostback method in asp.net? Why do we use that?
How many types of Cookies are available in ASP.NET?
Explain the difference between value type and reference type?
Describe SOA and the tenets of it?
If you want to write your own dot net language, what steps you will you take care?