NBartomeli
Programmer
I have a dll (report.vb) file that i pass a dataset to so it will get filled. In the routine, if the dataset exceedes a certain number of rows or columns, I want it to throw an exception and exit before it goes back to the page.
I have the following code
reports.vb:
report.aspx:
When I step through the code, it sees the exception, then just continues on with the function and is never caught. Am I doing something wrong?
Thanks in advance for any help.
I have the following code
reports.vb:
Code:
if rows > 255 or cols > 255 then
Throw New System.Exception("Rows / Cols exceeded")
endif
report.aspx:
Code:
try
dsReportData = buildReportData()
catch ex as exception
'handle exception
finally
...
end try
When I step through the code, it sees the exception, then just continues on with the function and is never caught. Am I doing something wrong?
Thanks in advance for any help.