dim o as object
o = SqlHelper.ExecuteScalar(sConnectionString, "CountProductsByCategory", 2)
rchTextbox.Text = CType(0, Integer)
By executing the stored proc, I am successfully getting the desired value into the object variable "o" (say 12). but when I use ctype function to convert that into integer, it shows up as 0 (zero) in the rich text box.
how can I do this convertion?
thanks
nath
