|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Enter text in at least one textboxI want to check if at least one of my two textboxes has an entered value....
If none of them has a value, I want a validator to show an errormessage.... How do I do that? You can implement a CustomValidator. Drag it onto your web form from
the toolbox. The handle the ServerValidate and in that method set the args.IsValid property based on your logic. http://msdn2.microsoft.com/en-us/library/9eee01cx.aspx Brennan Stehling http://brennan.offwhite.net/blog/ Tigers21 wrote: Show quoteHide quote > I want to check if at least one of my two textboxes has an entered value.... > If none of them has a value, I want a validator to show an errormessage.... > > How do I do that?
WebParts without SharePoint
How to format wizard? Problem accessing controls ReportViewer Causing Major Problems file upload and download Formfields in Repeaters - validation and save into DB Render web custom control Dropdownlist selected value Any way to set attributes for server controls by referencing properties/methods/variables? MOSS 2007 WebParts in ASP.Net 2.0 Application |
|||||||||||||||||||||||