I'm actually having the same problem. In my case the checkbox for the IsApproved field is also not active. I checked the source code and there is no href in the a tag and the checkboxes are disabled. I wonder if this may have to do with roles and assigning tasks to roles, or if it is because we are not using IIS. Anyone found a reason for this?
Quote:
Originally Posted by spardoe
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Email") %>' NavigateUrl='<%# Eval("Email", "mailto:{0}") %>' />
</ItemTemplate>
</asp:TemplateField>
|
Now it seems to me that if you are going to do a template, why use the Hyperlink object? I mean with a simple thing such as a hyperlink where we don't need to access it in server-side code, I tend to use straight HTML as much as I can. This would work:
Code:
<asp:TemplateField HeaderText="E-mail">
<ItemTemplate>
<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a>
</ItemTemplate>
</asp:TemplateField>