TextChanged event function not working

前端 未结 4 1318
萌比男神i
萌比男神i 2021-01-11 14:38

I have a simple aspx file

<%@ Page Language=\"VB\" AutoEventWireup=\"false\" CodeFile=\"test4.aspx.vb\" Inherits=\"test4\" %>



        
4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-11 14:54

    I know I'm late to the party with this one, but I still wanted to tell my story.

    I had a text changed event handler on a read-only TextBox.

    JavaScript changed the TextBox to read/write, but the event wouldn't fire. Probably because the back-end still thought it was read-only.

    I fixed the issue by moving all changes between R/O and R/W to the back-end. Now it works.

提交回复
热议问题