Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is code I used to find the textbox but not able clear the contents . Please suggest solution.
Dim txtfuncobj As String = DirectCast(GridViewMBOFuncObjDetalis.FooterRow.FindControl("txtfuncobj1"), TextBox).Text
Posted

1 solution

TextBox txtName = (TextBox)e.Row.FindControl("txtfuncobj1");
txtName.Text = "" or txtName.Text = string.empty
 
Share this answer
 
Comments
Tom Marvolo Riddle 7-Mar-14 0:52am    
It won't compile

Should be:

txtName.Text = string.Empty
Ni!E$H_WAGH 7-Mar-14 1:48am    
Thanks $*Developer - Vaibhav*$,Jas 24

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900