CREATE Procedure sp sample<BR>(@aid int,<BR> @bID int)<BR>AS<BR>Select Count(*) From SAMPLETABLE<BR>Where Entered = @aid <BR><BR>From this stored procedure i am getting the result and it is an integer.<BR>What i need now is using this result<BR>i have to write a funtion in a ASP page<BR>which will show "Ordinary" when the count is 1<BR>and "Special" when the count is greater than 1<BR>when the function is called in the ASP page.<BR><BR>can any body help me to write the code in function<BR>Thanks in Advance.<BR>