A TextBox Problem,Maybe some errors

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?
 
S

Sean

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top