views:

4

answers:

0

How can I handle errors when I use databinding to databind a query parameter to a datasource control?

I have 3 questions:

  1. How can I validate that the query string data is correct before it is bound to the datasource?

  2. How can I handle errors when the data is in the correct form but an error is generated from the database?

  3. Is it safe to databind directly to the query parameter?

If I remember in the DataGrid there was an OnError type of construct I used in the past.