R
Rob Meade
Hi all,
I have a login page which has username and password fields, a login button,
and 2 validation controls (one for each field) - currently I have controls
to display to the summary if the items missing etc.all working fine...
However, when the user logs in I fire off to a stored procedure, at this
point, unless the login is successful I can return up to about 8 different
error numbers in a string which I then split out into an array...
What I'd normally do in 'vanilla' ASP would be to iterate through the return
array and display a set of <tr><td></td></tr>'s etc for each error
message....I am at a complete loss as to how I do this in ASP.Net without
the use of labels?
Is it possible that I could add items to the validation summary at the
bottom of the page using my own error messages based on the returned error
code?
If not, how would I go about doing what i mentioned above, ie, producing
several rows in a table on the page? And if thats possible, would it also
be possible to remove the standard validation summary and upon the fields
being left empty, my table up top gets populated with the error messages
instead?
Any help would be apprecaited - and the easier to follow/understand the
better )
Many thanks for your time.
Regards
Rob
I have a login page which has username and password fields, a login button,
and 2 validation controls (one for each field) - currently I have controls
to display to the summary if the items missing etc.all working fine...
However, when the user logs in I fire off to a stored procedure, at this
point, unless the login is successful I can return up to about 8 different
error numbers in a string which I then split out into an array...
What I'd normally do in 'vanilla' ASP would be to iterate through the return
array and display a set of <tr><td></td></tr>'s etc for each error
message....I am at a complete loss as to how I do this in ASP.Net without
the use of labels?
Is it possible that I could add items to the validation summary at the
bottom of the page using my own error messages based on the returned error
code?
If not, how would I go about doing what i mentioned above, ie, producing
several rows in a table on the page? And if thats possible, would it also
be possible to remove the standard validation summary and upon the fields
being left empty, my table up top gets populated with the error messages
instead?
Any help would be apprecaited - and the easier to follow/understand the
better )
Many thanks for your time.
Regards
Rob