Duration: 23 minutes
Summary: In this video, we look at different ways of creating textboxes: SingleLine (which is the usual way of using a text box for a single line of input like a user name and city), MultiLine (where the user can enter a scrollable list of text. This is useful in the case of asking user for input and feedback on a product), and Password (as the name implies, this is where the user can enter his/her password to access sensitive information). We experiment with every one of those text modes. We also saw how we can associate a control (a label in this case) with an access key. We chose ‘n’ as the key. So now when the user hits Alt-n, he/she will get the focus on the textbox associated with that label. Finally, we looked at the Focus event and the onTextChanged event. The TextChangedEvent will not fire until we set the AutPostBack property to true.
Methodology of the development of example: It presents the conceptualization of new technology, which has It presents the conceptualization of new technology, which has good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET 4 and Visual Studio 2010Keyword: ASP.NET 4, Visual Studio 2010, TextBox, TextMode, AccessKey, AssociatedControlId, Focus, OnTextChanged.