Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RequiredFieldValidator 1

Status
Not open for further replies.

dpdoug

Programmer
Nov 27, 2002
455
US
I'm using the control validators in my code, but they are screwing up the alignment of the text in the table in the Web Form. Can this code be placed somewhere else - like for example in a code block in the head of the HTML page, for example?

dpd

PS: you guys are being a great help to this newbie -- thanks! [thumbsup2]
 
Hi,

The display of the error message of an ASP.NET validator control can be set to static, dynamic, or none, in which case it can be displayed by a ValidationSummary control. So in your case you should set it to either dynamic or none.

For example like this:

Code:
...
<asp:ValidationSummary ... />
...
<asp:RequiredFieldValidator Display=&quot;None&quot; ... />
...


regards,
Blaxo
 
I don't understand the Display setting. I have a text box a button next to it, and then a submit button below everything so that when the 1st button is pressed, a calendar appears underneath it.

Becasue the submit button is below all the user input stuff, I want to make it so that the calendar and the submit buttons are given set positions on the screen, so that whenever I press the 1st button, my submit button doesn't get pushed down the screen to make way for the calendar.

I would've thought Display=&quot;Static&quot; would do this, but I get the same result as using Display=&quot;Dynamic&quot;. Can anybody help me out with this?


Any help would be really appreciated.


Thanks,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top