Revision: 24521
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 3, 2010 03:57 by emregulcan
Initial Code
//Codebehind method public string ChangeValue(string val) { string ret= string.Empty; if (val== "True") { ret= "In Stock"; } else { ret= "Not in stock"; } return ret; } Replace your Eval in ASP.NET page (in example this is a label) <asp:Label ID="Label3" runat="server" Text='<%# ChangeValue(Eval("isStock").ToString())%>'></asp:Label>
Initial URL
Initial Description
You can change your dynamic binding eval text with this method. This method should be in same codebehind
Initial Title
Change "Eval" Value
Initial Tags
c, text
Initial Language
C#