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>
Text=' <%# bdirty? GetDefaultMaxStay(): DataBinder.Eval(Container.DataItem, "MaxStay" ) %>'
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.