Hello everyone!
I have to add to my textBox a WatermarkExtender from ajax control toolkit (it is already instaleed properly) . Problem is that when I try pull the TextBoxWatermarkExtender from the toolbox Visual studio 2010 dont alow's me to do that.
this the source code of default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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 type="text/javascript">
function pageLoad() { }
</script>
<style type="text/css">
.watermark
{
color : Gray;
background-color : #dddddd;
font-size : smaller;
font-style : italic;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 89px">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:TextBox ID="txtInput" runat="server" text="Enter Date"
AutoPostBack="True" ontextchanged="txtInput_TextChanged"></asp:TextBox>
<asp:TextBox ID="txtEcho" runat="server" ReadOnly="True"></asp:TextBox>
<br />
</div>
</form>
</body>
</html>
This is code of default.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void txtInput_TextChanged(object sender, EventArgs e)
{
txtEcho.Text = txtInput.Text;
}
}
This is printScreen from visual studio http://img840.imageshack.us/f/89265781.png/