'IME is disabled' when set focus on TextBox


Joined
Oct 22, 2012
Messages
1
Reaction score
0
I've 2 textbox and a button. The 1st textbox is for entry, the 2nd textbox displayed the time when the button is clicked.

When the page is first loaded, I'm able to select non-default language - Chinese and entered in the 1st textbox. But when the button is clicked, tbMsg.Focus() causes 'IME is Disabled' at the language bar. Though the input language still shows Chinese, it can no longer be entered.

Tried setting the 1st textbox style="ime-mode:active" but still the same.

Is it possible at all to continue the selected non-default language entry when the textbox is foucs?

Many Thanks.

Code:
<form id="form1" runat="server">
  <asp:ScriptManager ID="sm" runat="server" />
  <div>
    <asp:TextBox ID="tbMsg" runat="server" Rows="6" TextMode="MultiLine"
                 Width="329px" style="ime-mode:active" />
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:TextBox ID="TextBox1" runat="server" Width="150"/>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    <br />

    <asp:Button ID="Button1" runat="server" Text="Time" onclick="Button1_Click" />
  </div>
</form>

protected void Button1_Click(object sender, EventArgs e)
{
    TextBox1.Text = DateTime.Now.ToString("dd MMM yyyy HH:mm:ss");
    tbMsg.Focus();
 
Ad

Advertisements


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

Top