Hi SP Experts,
I’m breaking my head for last few days to accomplish my task. Let me explain.. I have to show ajax controls (TextBoxWatemarkExtender) on NewForm.aspx and EditForm.aspx instead of sharepoint controls.
For that I have added register directive for AjaxToolkit (version 4.0) on top of myNewForm.aspx. I tried following way..Â
<%@ Register Assembly=”AjaxControlToolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e” Namespace=”AjaxControlToolkit” TagPrefix=”ajaxToolkit” %>
And myNewForm.aspx page looks like:
<tr>
<td width=”190px” valign=”top” class=”ms-formlabel”>
<H3 class=”ms-standardheader”><nobr>Year<span class=”ms-formvalidation”> *</span> </nobr> </H3></td>
</nobr>
</H3>
</td>
<td width=”400px” valign=”top” class=”ms-formbody”>
<SharePoint:FormField runat=”server” id=”ff3{$Pos}” ControlMode=”New” FieldName=”Year” __designer:bind=”{ddwrt:DataBind(‘i’,concat(‘ff3′,$Pos),’Value’,’ValueChanged’,’ID’,ddwrt:EscapeDelims(string(@ID)),’@Year’)}”/>
<SharePoint:FieldDescription runat=”server” id=”ff3description{$Pos}” FieldName=”Year” ControlMode=”New”/>
<ajaxToolkit:TextBoxWatermarkExtender ID=”TextBoxWatermarkExtender1″ runat=”server” TargetControlID=”ff3{$Pos}” WatermarkText=”Enter year” />
</td>
</tr>
How do we set ‘target id’ for ajax control from the above?
My question is.. Is it possible to accomplish my task by the following way ie, by using sharepoint designer .
Also I tried on creating list and application pages by using vs but there also ajax controls did’nt workÂ
Please correct me by your valuable suggestions .
Thanks in advance.