multiline textbox enter key in asp.net
I have usercontrol with asp:Textbox with multiline textmode property set. Users want to enter names per line. when user hit enter control is not moving to next line. Where as i have similar kind of usercontrol which is working perfect, allows to enter key. Thursday, July 3, 2008. Asp.Net Multiline TextBox Default Button. Hi guysAnd the send button is set as the default button. Since the textbox is multiline, if we press enter key, as its behavior it will produce a newline inside the textbox. Home Newsgroups > Microsoft DotNet > Microsoft ASP .NET >. simple problem with multiline textboxes in ASP.NETI just want nothing to happen when the ENTER key is pressed inside a multiline textbox. Change the TextMode of the textBox from SingleLine to MultiLine. You can do it from the properties window or writing the following C code in PageLoad method.If you want to enter multiple enters in a single text box than you need to set text of that text box like that. Further inside the page we have to take the two aspx controls named as textbox and the other one is the button. In this article we will see that a textbox having multiline text will scroll automatically on clicking the button control. " I hope you have got how to Set Default Focus in textbox and Default Button on enter key press in content page in asp.net and If you like my work you can appreciate by leaving your comments, hitting Facebook like button, following on Google, Twitter, Linked in and Pinterest Newsgroups: microsoft.public.dotnet.framework.aspnet.
I add a TextBox with TextMode" MultiLine" so that I can input multilines to the textbox.Next by Date: Re: ENTER key in TextBox in ASP.NET 2.0, Aidy. Previous by Thread Gets or sets the access key that allows you to quickly navigate to the Web server control.(Inherited from WebControl.)The TextBox server control is an input control that lets the user enter text.If the TextBox control is a multiline text box, the number of rows it displays is determined by the Rows Tags: winforms vb.net textbox multiline. Related post.