The thing is that Panos (our designer) and me included would prefer not having to write codebehind for that (or place similar commands inside the page). So the AJAX toolkit's TextBox extender seems to be a better match, since from what I understand it applies the watermark value when needed only and you define it in the markup
One issue may be whether that control existed at the older version of AJAX Control Toolkit included in MonoX, else one will need to tell ASP.net to use the newer version (installed from http://ajaxcontroltoolkit.codeplex.com/releases/view/90063
), editing web.config as explained at:
they'd need to add after the <%@ Page ...> the declaration:
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
(supposing the master page doesn't already have such a thing)
and then in the main part of the page/control:
<ajax:ToolkitScriptManager runat="Server" />
and then above
<asp:TextBox runat="server" ID="Password" TextMode="Password"></asp:TextBox>
<ajaxToolkit:TextBoxWatermarkExtender ID="TBWE" runat="server"
WatermarkText="Type First Name Here"
and do similar at other textbox controls that need a watermark (obviously editing ID "TBWE" to "TBWE2" etc. and setting TargetControlID to the ID of the textbox control that needs to get a watermark behaviour)
or did I miss something?