how can i call output parameters from ado.net

Answers were Sorted based on User's Feedback



how can i call output parameters from ado.net..

Answer / vallabh naik

SqlParameter arParams = New SqlParameter("@FeedbackID",
SqlDbType.Int);
arParams.Direction = ParameterDirection.Output;

Is This Answer Correct ?    5 Yes 0 No

how can i call output parameters from ado.net..

Answer / vineet tiwari

u can call output parameters in ado.net through store
procedure.

Is This Answer Correct ?    1 Yes 1 No

how can i call output parameters from ado.net..

Answer / 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

More ASP.NET Interview Questions

What is deference between asp.net, vb.net, c# & j#

2 Answers  


Difference between using directive vs using statement?

0 Answers  


What is the maximum timeout we can set for Cookies?

0 Answers  


How to use ipostback?

0 Answers  


What is the difference between the get method () and post method ()?

0 Answers  






Is it true that a Web service must be written in .NET or not?

0 Answers   Siebel,


What r the page life cycle in asp.net page?

6 Answers  


What is the use of HttpHandlers? When to use this?

0 Answers   Wipro,


What is http session state?

0 Answers  


What is the difference between Hash table and Array list?

0 Answers  


What does the "EnableViewState" property do? Why would I want it on or off?

4 Answers  


is it possible to develop gaming application using .net technology?

2 Answers  


Categories