A TextBox Problem,Maybe some errors

  • Thread starter Thread starter huoge
  • Start date Start date
H

huoge

When you use a System.Web.UI.WebControls.TextBox in your
..aspx files,if you input a `(which is under the ~),and submit the text,you
may see some wrong message.
Why?
Is some bugs of the TextBox control?
 
I don't have that problem, the page runs correctly

my code:
<%@ Page Language="C#" %>

<script runat=server>

public void Page_Load(object sender, System.EventArgs evt)
{
}

protected void btnTest_Click(object sender, EventArgs e)
{
txtTest.Text = "1234";
}

</script>

<html>

<body>
<form id=frmMain runat=server>
<asp:TextBox id=txtTest Text="`" runat=server />
<asp:Button id=btnTest Text="Submit" OnClick="btnTest_Click" runat=server
/>
</form>
</body>
 
Back
Top