Saturday, 3 August 2013

Ajax Watermark

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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!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>Ajax Watermark Demo</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" />
    <div>
        <asp:TextBox ID="txtName" runat="server" Width="200"></asp:TextBox>
    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtName" WatermarkCssClass="" WatermarkText="Please enter youe name">
    </asp:TextBoxWatermarkExtender>
    </div>
    </form>
   
</body>
</html>

No comments:

Post a Comment