View Single Post
 
Old September 18th, 2003, 06:10 AM
developerz developerz is offline
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In the C# version it is in the Polls.Data project - in the Question.cs file found in this code:

    public int GetCurrentID()
        {
            int numAffected;

            // create the parameters
            SqlParameter[] parameters = { new SqlParameter("@QuestionID", SqlDbType.Int, 4) };
            parameters[0].Direction = ParameterDirection.Output;

            // run the procedure
            RunProcedure("sp_Polls_GetCurrentQuestionID", parameters, out numAffected);

            return (int)parameters[0].Value;
        }