Cathi,
Thanks for the suggestion. I almost have it. Here is what I tried. 1. I placed the code below in the load event and it doesn't work. The "Specified cast is Invalid exception" is thrown. 2. I also placed the same code in a method and call the method from the load event of the form, I get the same exception. 3. If I place the code in a click event of a button, the code works when the button is clicked. Why am I getting the Specified cast is not valid message?
Try
dsResults = CType(Session("dsSearchResults"), DataSet)
setMessage("There were " + dsResults.Tables(0).Rows.Count.ToString + " record(s) found!")
Catch exp As Exception
setMessage(exp.Message)
End Try
Thanks
Jim
Thanks
Jim