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 .xap file? Explain with an example.
What is virtual directory in asp.net?
What is client side state management?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
What is custom attribute? How to create?
Why is global asax is used?
What are the ways of preserving data on a Web Form in ASP.NET?
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
What are the elements of a website?
What is the difference between GridView and Repeater controls in ASP.NET?
Why do we need a web application session?
What are the new web part controls in asp.net 2.0 ?
What is the extension of master page in asp.net?
How to find last error which occurred in Asp.net ?
What are the new features implemented in ASP.NET?