how can i call output parameters from ado.net
Answers were Sorted based on User's Feedback
Answer / vallabh naik
SqlParameter arParams = New SqlParameter("@FeedbackID",
SqlDbType.Int);
arParams.Direction = ParameterDirection.Output;
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / vineet tiwari
u can call output parameters in ado.net through store
procedure.
Is This Answer Correct ? | 1 Yes | 1 No |
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 |
What is deference between asp.net, vb.net, c# & j#
Difference between using directive vs using statement?
What is the maximum timeout we can set for Cookies?
How to use ipostback?
What is the difference between the get method () and post method ()?
Is it true that a Web service must be written in .NET or not?
What r the page life cycle in asp.net page?
What is the use of HttpHandlers? When to use this?
What is http session state?
What is the difference between Hash table and Array list?
What does the "EnableViewState" property do? Why would I want it on or off?
is it possible to develop gaming application using .net technology?