Sharepoint 2013 Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint 2013       RSS Feeds

Showing ajax controls on list NewForm.aspx page?

  Asked By: Praveen    Date: Jan 29    Category: Sharepoint 2013    Views: 3386

Hi All,

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=, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<td width="190px" valign="top" class="ms-formlabel">
<H3 class="ms-standardheader"><nobr>Year<span class="ms-formvalidation"> *</span> </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" />


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 .

Please correct me by your valuable suggestions .

Thanks in advance.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Showing ajax controls on list NewForm.aspx page? Or get search suggestion and latest updates.