Maven4Champ
Technical User
- Jun 16, 2004
- 154
Hi all,
I was hoping to get some input on a logical (and most efficient) way to dynamically build a grid (or html table) that displays validation errors that a user might encounter during a validation sub process.
There is no "data source" of where these errors come from but simply a string that I would pass to the grid or table that is descriptive and includes the column there error occured on.
For instance:
So as each error is encountered, I display a GridView or HtmlTable for the user on the ASP webpage that adds a row as a row through each loop. Once the page is displayed, they are presented w/ the errors in a Grid or Table so they actually know what the errors are and can resolve them, re-validate and then finally submit once complete.
What is the best way to handle this in VB.NET? As I understand it, a GridView must have a DataSource and this technically doens't have a datasource - thoughts?
I was hoping to get some input on a logical (and most efficient) way to dynamically build a grid (or html table) that displays validation errors that a user might encounter during a validation sub process.
There is no "data source" of where these errors come from but simply a string that I would pass to the grid or table that is descriptive and includes the column there error occured on.
For instance:
Code:
For each record
AddRow: resp1 & " cannot be assigned to this user because they are already assigned: " resp2
Next
So as each error is encountered, I display a GridView or HtmlTable for the user on the ASP webpage that adds a row as a row through each loop. Once the page is displayed, they are presented w/ the errors in a Grid or Table so they actually know what the errors are and can resolve them, re-validate and then finally submit once complete.
What is the best way to handle this in VB.NET? As I understand it, a GridView must have a DataSource and this technically doens't have a datasource - thoughts?