Friday 6 December 2013

Watermark In TextBox Through "placeholder" in asp.net

Output :

When We Enter a text then Water Mark will Be Disapear.



Aspx Page :



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

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="Panel1" Width="300px" Height="120px" BackColor="Teal"  runat="server">
        

   <asp:Label ID="Label1" runat="server" Font-Bold="true" ForeColor="White" Font-Size="X-Large" Text="Email"></asp:Label>
            

   <asp:TextBox ID="TextBox1" placeholder="Enter Email Id" runat="server"></asp:TextBox>


        </asp:Panel>
    </div>
    </form>
</body>
</html>

No comments:

Post a Comment