|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Great page, pretty much what I needed.
Tried this <tr> <td align="right" class="style6">Username</td> <td class="style7"> <asp:TextBox ID="tbInsertUsername" runat="server" class="style_datafield" Text='<%# Bind("username") %>' /> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbInsertCompany" ErrorMessage="Comapny can only be characters and blanks" ValidationExpression=""a-zA-Z 0-9{6,50}"">*</asp:RegularExpressionValidator> </td> <td> <asp:RequiredFieldValidator ID="rfvInsertUsername" runat="server" ErrorMessage="Username is iequired" ControlToValidate="tbInsertUsername">*</asp:RequiredFieldValidator> </td> </tr> Questions: Can I use both RequiredFieldValidator and RegularExpressionValidator for the same Control. If RequiredFieldValidator works correctly users shouldn't be allowed to enter empty tbInsertUsername. It doesn't seam to do what I want. I can still enter )#/¤#= BTW In stead of using InsertCostomer<TextBox> I us <tb>InsertCustomer naming style. An old habit from a crash course I took in SQL Windows 11 years ago. Still use the same for all my projects. lbl for Labels. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Ops Wrong group, my apolagies
"Mr. R" <jon.doe@xxxxxxxxxxxxxxxxxx.xxx> skrev i meddelandet news:zz8rj.3618$R_4.2686@newsb.telia.net... > Great page, pretty much what I needed. > > Tried this > > <tr> > > <td align="right" class="style6">Username</td> > > <td class="style7"> > <asp:TextBox ID="tbInsertUsername" runat="server" > class="style_datafield" Text='<%# Bind("username") %>' /> > <asp:RegularExpressionValidator ID="RegularExpressionValidator1" > runat="server" > ControlToValidate="tbInsertCompany" ErrorMessage="Comapny > can only be characters and blanks" > ValidationExpression=""a-zA-Z > 0-9{6,50}"">*</asp:RegularExpressionValidator> > </td> > <td> > <asp:RequiredFieldValidator ID="rfvInsertUsername" runat="server" > ErrorMessage="Username is iequired" > ControlToValidate="tbInsertUsername">*</asp:RequiredFieldValidator> > </td> > </tr> > > Questions: > > Can I use both RequiredFieldValidator and RegularExpressionValidator for > the > same Control. If RequiredFieldValidator works correctly users shouldn't be > allowed to enter empty tbInsertUsername. > > It doesn't seam to do what I want. I can still enter )#/¤#= > > BTW > > In stead of using InsertCostomer<TextBox> I us <tb>InsertCustomer naming > style. An old habit from a crash course I took in SQL Windows 11 years > ago. > Still use the same for all my projects. lbl for Labels. > > > |
|
![]() |
| Outils de la discussion | |
|
|