Some examples I found that apparently worked with older versions of mvc suggest that there was a length parameter of sorts:
<%=Html.TextBox("test", 50)%>
But that may have been mistakenly setting the value.
How do this work in the current release? Passing in the style doesn’t appear to have any effect.
The original answer is no longer working as written:
will get you a text box with “{ style=”width:50px” }” as its text content.
To adjust this for the current release of MVC 1.0, use the following script (note the addition of the second parameter – I have mine starting as blank, adjust accordingly based on your needs):