Click here to Skip to main content
15,902,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

Has any one have solution how to fix this issue.


code
default.aspx
XML
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" Title="Updating" %>
<%@ Register Src="~/UserControls/ctrl1.ascx" TagName="Control" TagPrefix="uc10" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server">
  <table>
<tr>
                            <td>
                                <uc10:Control ID="Control1" runat="server" />
                            </td>
                        </tr>
                    </table>
</asp:Content>



Control.ascx
XML
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Control.ascx.cs" Inherits="Default_Control" %>

  <table>
<td colspan="2"><b>Prevent Send List</b><asp:TextBox ID="txtPrev" runat="server" Rows="23"
                            TextMode="MultiLine" Wrap="true" Width="95%" ></asp:TextBox>

</td>


        </tr>
        </table>
Posted
Comments
Richard Deeming 23-Feb-15 15:51pm    
What does the rendered HTML for that control look like?
Reddy Prakash 23-Feb-15 16:10pm    
<TEXTAREA style="WIDTH: 95%" id=ctl0_cphMain_Control_txtPrev rows=23 name=ctl0$cphMain$Control$txtAFENumbers></TEXTAREA>
Richard Deeming 23-Feb-15 16:19pm    
There doesn't seem to be anything wrong with that. Is there any non-standard javascript running on your page?
Reddy Prakash 23-Feb-15 18:30pm    
I will take your input and see if that is causing any problem, thanks for the input
Suvendu Shekhar Giri 23-Feb-15 22:56pm    
Yes, as @Richard said, this could be due to any non standard javascript. I am just trying to extend by saying, check for if there is any logic written for keyup or keydown events.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900