Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在文本框中启用回车_C#_Asp.net - Fatal编程技术网

C# 在文本框中启用回车

C# 在文本框中启用回车,c#,asp.net,C#,Asp.net,在我的aspx页面中有一个简单的文本框,由于某种原因我不明白,回车键不起作用 已编辑 <%@ Page Title="" Language="C#" MasterPageFile="/Master.master" AutoEventWireup="true" CodeFile="Process.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlace

在我的aspx页面中有一个简单的文本框,由于某种原因我不明白,回车键不起作用

已编辑

<%@ Page Title="" Language="C#" MasterPageFile="/Master.master" AutoEventWireup="true" CodeFile="Process.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" class="innermainclass">
<asp:TextBox runat="server" ID="txbdesc" Text='<%# Eval("Descritivo") %>' TextMode="MultiLine" Rows="5" Width="450px" Height="150px" />
</asp:Content>

当我按“回车”或“回车”时,它什么也不做。我想让它乘马车返回


谢谢。

它对我有用,所以一定有一些你没有显示的东西。呈现的HTML是什么?
1234567890
这是有效的,并且做了你所期望的,页面上有JavaScript与之交互吗?
CodeFile=“Process.aspx.cs”
将此行更改为以下
codebeahind=“Process.aspx.cs”