How to place a required field validator inside a GridView TextBox

前端 未结 2 2074
暖寄归人
暖寄归人 2021-01-29 00:27

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:37

    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.

提交回复
热议问题