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
How does ASP.NET framework maps client side events to Server side events.?
What does aspcompat="true" mean?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
What is the meaning of TestApi?
Explain cookies with example.
Why will you usually create an aspnet user account in the database for an asp.net web application?
COM+ Used ________________ Isolation Level
What is difference between session and application in asp net?
Which Is Faster MVC or ASP.net ?
In which event of the page life cycle, is the viewstate available?
How you can access the properties and controls of master pages from content pages?
What is preprocessor in .net?
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
What is the use of response redirect in asp.net?
What are the types of validation in asp net?