How to: Get and Set Values in TextBox Web Server Controls
You can get or set the value of a TextBox control at run time.
User input in a Web page can include potentially malicious client script. By default, the Web Forms page validates that user input does not include script or HTML elements. For more information, see How to: Protect Against Script Exploits in a Web Application by Applying HTML Encoding to Strings.