Hi,
I don't really have a problem, I just wanted some advice on how to approach a certain situation. I have a form that is formatted using a table. there are 3 rows and 3 columns. the first column has the Labels the 2nd column has their associated text boxes and the 3rd column is there for any error messages to appear (hopefully the messages would be horizontally in line with the text boxes)
That is my problem. I have 3 checks for the first text box.
1) a required field validator
2)a range validator
3)a check to a database to see that the number entered is not already in the database. (my function)
So that would be 3 different error message labels (i should say) that i would have to place in the <td> of the 3rd column 1st row of the table.Place one, press enter place another press enter again and place the last one.(1st two are validators and the last one is a label). with this approach all 3 messages appear in 3 separate lines within the table cell in the design view of the form
What i want is that if an error has to show up then it would show up in line with the text box no matter what the error is.
I even tried putting all as relatively positioned one on top of the other.My problem with that was it was that the writing on the control in design view was so jumbled up and i couldn't get to click on the lower ones to see its properties.
Is their an easier way to have these 3 messages appear in one place next to the text box?
I am new to .NET
please help
I don't really have a problem, I just wanted some advice on how to approach a certain situation. I have a form that is formatted using a table. there are 3 rows and 3 columns. the first column has the Labels the 2nd column has their associated text boxes and the 3rd column is there for any error messages to appear (hopefully the messages would be horizontally in line with the text boxes)
That is my problem. I have 3 checks for the first text box.
1) a required field validator
2)a range validator
3)a check to a database to see that the number entered is not already in the database. (my function)
So that would be 3 different error message labels (i should say) that i would have to place in the <td> of the 3rd column 1st row of the table.Place one, press enter place another press enter again and place the last one.(1st two are validators and the last one is a label). with this approach all 3 messages appear in 3 separate lines within the table cell in the design view of the form
What i want is that if an error has to show up then it would show up in line with the text box no matter what the error is.
I even tried putting all as relatively positioned one on top of the other.My problem with that was it was that the writing on the control in design view was so jumbled up and i couldn't get to click on the lower ones to see its properties.
Is their an easier way to have these 3 messages appear in one place next to the text box?
I am new to .NET
please help
Comment