VB.net Precompiled site, and adding a template column with Date differences
I have a vendor application which is precompiled. I want to add a template column into the aspx page, however I'm having some difficulty.
This works for me fine as "Available" is a column bound to the asp DataGrid:
<asp:TemplateColumn HeaderText="test">
<ItemTemplate>
<asp:Label ID="Label2" Text='<% #DataBinder.Eval(Container.DataItem, "Available") %>' runat="server"/>
</ItemTemplate>
</asp:TemplateColumn>
Now, I'm trying to basically create a template column, that takes the (int) "Available" column and divide it by 12 and then multiply by D开发者_JS百科ateTime.Now.Date.Month.
I'm not having any luck with using DateTime within <% %> on this page.
Thanks, Mark
You can remove inherits="Archive, App_Web_XXXXX"
from <%@ Page %>
then bring your code into ASPX file and modify it.
精彩评论