Click here to Skip to main content
15,072,134 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working on HandelBar js to load data into Aps.net controls. can we use Ajax controls in handlebar template?
i tried but it is not working for me

<table id="tblPeriodDateRanges" style="overflow: auto">
<thead class="dark_blue_header">
<tr>
<td style="width: 50px;">
<asp:Label runat="server" Text="Edit"></asp:Label></td>
<td style="width:200px;">
<asp:Label runat="server" Text="Standard Season Name"></asp:Label></td>
<td style="width: 200px;">
<asp:Label runat="server" Text="From"></asp:Label></td>
<td style="width: 200px;">
<asp:Label runat="server" Text="To"></asp:Label></td>

</tr>
</thead>
<tbody>
</tbody>
</table>

</div>
<script id="PeriodDateRangeTemplate" type="text/x-handlebars-template"">
{{#each this}}
<tr>
<td>
<asp:HiddenField runat="server" ID="RowID" />
<asp:ImageButton runat="server" ID="btnDelete" ImageUrl="~/App_Themes/Default/images/remove_16x16.png" AlternateText="Remove" OnClientClick="return DeleteRow(this.parentElement.parentElement);" />
</td>
<td>
<asp:HiddenField runat="server" ID="hdnSeasonID" Value="{{this.SeasonTypeID}}" />
<asp:TextBox runat="server" ReadOnly="true" ID="txtSeasonName" value="{{this.SeasonTypeName}}" class="readOnlycss txt" />
<asp:DropDownList runat="server" ID="ddlSeasonName" CssClass="class_Season_ddlCP"></asp:DropDownList>
</td>
<td>
<asp:TextBox runat="server" ID="txtFromDate1" Text="{{this.DateRangeStartDate}}" CssClass="txt readOnlycss" />
<cc1:CalendarExtender ID="CalendarExtendertxtFromDate" runat="server" TargetControlID="txtFromDate1"></cc1:CalendarExtender>
</td>
<td>
<asp:TextBox runat="server" ID="txtToDate1" Text="{{this.DateRangeEndDate}}" CssClass="txt readOnlycss" />
<cc1:CalendarExtender ID="CalendarExtendertxtToDate" runat="server" TargetControlID="txtToDate1"></cc1:CalendarExtender>
</td>

</tr>
{{/each}}
</script>
Posted
Comments
Richard Deeming 2-Oct-15 12:52pm
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900