You should view the source in IE and see what id is assigned to that
textbox. Each control is given a client-side unique id, based on its
server-side id and the ids of its container controls.
For example a server-side textbox with the id of DataSetNameTextBox is
outputted as
<input
name="ctl00$ContentPlaceHolder1$fvwNormsDataSet$Da taSetNameTextBox"
type="text" value="

" maxlength="50"
id="ctl00_ContentPlaceHolder1_fvwNormsDataSet_Data SetNameTextBox" />
, as it is contained by a formview, which is contained by a master page
placeholder, and so on.
As you can see, the textbox is outputted as an input, so trying to
access the Text property will result in a javascript error.