How to place a required field validator inside a GridView TextBox

前端 未结 2 1942
长情又很酷
长情又很酷 2021-01-29 00:32

I have a GridView with some TemplateField items containing TextBox controls. I would like to add a required field validator on it. This is

2条回答
  •  一整个雨季
    2021-01-29 00:49

    Within gridview i assign textbox,requiredfieldvalidator and button,This validator validate all textboxes in gridview when button click without filling textbox. How can i solve this..

                       
            
        
                 
    
                 
                 
    
            
         
    

    This will validate all textboxs in gridview,When i click button in particular row without filling the textbox in itemtemplate.

提交回复
热议问题