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 are strong names?
Is sql backend or frontend?
What are Master Pages in ASP.NET? or What is a Master Page?
Who generates session id?
Write the different features of a Thread and a Process?
What is the difference between a cookie and a pixel?
Can master pages be nested?
Why would anyone need to implement their own hashtable or linked list?
What is the usage of DelegatingHandler?
What is http session state?
What is the difference between GridView and Repeater controls in ASP.NET?
Is react a template engine?
How do you do Client-side validation in .Net?
What is postback in asp net?
What is postback pixel?