|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Gridview: Edit row validationHi,
I have a grid view that, when the row is in edit mode, contains a pair of radio buttons (Yes/No) and 3 edit fields (2 text boxes and a drop down list). I have business rule that states that if Yes is selected, the 3 edit fields are required but if No is selected the 3 edit fields are not required and ideally should not be displayed. I would like to do this without a round-trip to the server on the radio button click. Does anyone know how to handle this? Thanks, Carlo. You can enable/disable the client-side validators on radionbutton's onClick
event. Use ValidatorEnable(val, enable) function. For details, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp Robert Haken [MVP ASP/ASP.NET] HAVIT, s.r.o., www.havit.cz http://knowledge-base.havit.cz Show quoteHide quote "carlor" <car***@discussions.microsoft.com> pí¹e v diskusním pøíspìvku news:8D08FFA2-AEC9-41A6-8747-0182803A65C9@microsoft.com... > Hi, > > I have a grid view that, when the row is in edit mode, contains a pair of > radio buttons (Yes/No) and 3 edit fields (2 text boxes and a drop down > list). > I have business rule that states that if Yes is selected, the 3 edit > fields > are required but if No is selected the 3 edit fields are not required and > ideally should not be displayed. > > I would like to do this without a round-trip to the server on the radio > button click. Does anyone know how to handle this? > > Thanks, > > Carlo. Thanks Robert,
That's just what I was looking for. Carlo. Show quoteHide quote "Robert Haken [MVP]" wrote: > You can enable/disable the client-side validators on radionbutton's onClick > event. > Use ValidatorEnable(val, enable) function. > > For details, see > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp >
how to map the given name to different domain
what' wrong with this? FormView problem with Templates and Tables Turning URL Navigation off on a Treeview sqldatasource and connection exception handling IConvertible Error ITemplate web parts bug? DataSource failing with null integer parameter Master pages, radio buttons and JavaScript, oh my! |
|||||||||||||||||||||||