Hi!
Iam new with this, and trying to explore and understand the ASP.NET C#.
I got a little bit problem regarding control statement specifically using the if statement. What I really wanted is to have two options in navigating windows page. For example, if the other column name "Remarks" is not null, I want the user to view this page name "<%# ("Detail1.aspx?sid=" + Eval("SysID")) %>'" else
<%# ("Detail2.aspx?sid=" + Eval("SysID")) %>'.
How can I apply the if condition within the code as shown below.
<asp:TemplateField HeaderText="Mode">
<ItemTemplate>
<asp:HyperLink ID="lnkTrainings" runat="server"
NavigateUrl='<%# ("Detail1.aspx?sid=" + Eval("SysID")) %>'
Target="_blank" Text="View"></asp:HyperLink>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="50px" />
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>.
Do I really need to apply the condition in asp.net or in C#.?
Thanks in advance