A TextBox Problem,Maybe some errors

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default A TextBox Problem,Maybe some errors

    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?


    huoge Guest

  2. Similar Questions and Discussions

    1. Problem in saving value of a textbox into a variable
      I have a problem in saving value of textbox1 and RadioButtonList1 into a variable so that i can insert a rec in the table.....following is the HTML...
    2. Get textbox value from datagrid problem
      Hi, could you please tell me what is wrong with this piece of code. I have a DataGrid, and I would like to know the value of a textbox field, and...
    3. Problem with textbox in template column and databind
      I am having a problem with the datagrid and a template column that is giving me fits. In the HTML, I have the grid defined at design time as just...
    4. Nice textBox w/built in validation problem
      Attached is an article on how to create a textbox control with built in validation. See...
    5. Problem with TextBox w/TextMode = password
      I can't seem to programatically assign a textBox server control when TextMode=Password, why is this?
  3. #2

    Default Re: A TextBox Problem,Maybe some errors

    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>


    "huoge" <wulfeng@sina.com.cn> wrote in message
    news:e5M$EfmUDHA.2012@TK2MSFTNGP10.phx.gbl...
    > 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?
    >
    >

    Sean Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139