_Setting_ textbox's text using FindControl

ellenlouse

New Member
I need to be able to set a textbox's (which is inside a gridview row) text to a certain string in runtime. I have used FindControl before, but can't figure out the syntax for actually setting the value of the textbox rather than just getting. Here's what I have, which doesn't compile:\[code\]((TextBox)e.Row.FindControl("txtPath")).Text = dataMap.GetString("targetPath"));\[/code\]I'd be grateful for any helpThanks
 
Top