[thelist] [ASP.NET] best practice error handling

Les Lytollis leslytollis at dimensions-corporatewear.co.uk
Wed Apr 14 06:48:41 CDT 2004

>If it returns a string instead of a DataSet then just use the
layer.value attribute to set the layer text of your >error message and
hide the dataset accordingly.

> you could choose to add a repeater, or a label, 
> depending on what is returned (dataset or string).

If my method is:

public DataSet GetProductSet() {}

How do I return a string?

Lez Lytollis

********************Confidentiality Notice & Disclaimer ***********************
This message, together with any attachments, is for the confidential and exclusive use of the addressee(s).
If you receive it in error, please delete the message and its attachments from your system immediately and notify us by return e-mail.
Do not disclose, copy, circulate or use any information contained in this e-mail.

(1) Whilst we have taken reasonable precautions to ensure that any attachment to this e-mail has been swept for viruses, we cannot accept liability for any damage sustained as a result of software viruses and would advise that you carry out your own virus checks before opening any attachment.
(2) The sender shall remain solely accountable for any statements, representations or opinions that are clearly his or her own and not made in the course of employment.

More information about the thelist mailing list