How to write an if in asp

Jun 2 2008 3:37 AM

Can some one help me to write this in asp? Is it possible?

<asp:TemplateField HeaderText="Release">
                <ItemTemplate>
                     <%# DataBinder.Eval(Container.DataItem, "Release" )%>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox runat="server" id="txtRelease"
Text= '<%# if (bdirty) then DataBinder.Eval(Container.DataItem, "Release" )
                                 else GetDefaultRelease()%>'/>
</EditItemTemplate>

Thank you!


Answers (1)