如果是在前端給一個文本框賦值的話,有事件可以捕捉這一變化<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Key.aspx.cs" Inherits="Test_Key" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>未命名頁面</title>    <script id="igClientScript" type="text/javascript">
    <!--
    
    function Change()
    {
        document.getElementById('txtTarget').value = 'Transfer';
        alert(event.propertyName);//可以查看是甚麼屬性發生了變化
    }
    
    function ChangeProperty()
    {
        document.getElementById('txtOriginal').value = 'Hello';
    }
    
    // -->
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="text" id="txtOriginal" onpropertychange="Change()" />
        <input type="text" id="txtTarget" />
        <input type="button" id="btnChange" onclick="ChangeProperty()" value="Change Property" />
    </div>
    
    </form>
</body>
</html>