<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Propriedades.aspx.cs" Inherits="Propriedades" %>

<!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>Página de origem</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" Text="Digite o seu nome." onFocus='LimpaCampo()' runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" PostBackUrl="~/PageAlvo.aspx" Text="OK" /></div>
    </form>
    <script type="text/javascript">
        function LimpaCampo() {
            if (document.forms[0].TextBox1.value == "Digite o seu nome.") {
                document.forms[0].TextBox1.value = "";
            }
        }
    </script>
</body>
</html>
