<asp:TextBox runat="server" Text='<%#DefaultVal(Eval("FieldName").ToString())% >' ID="txtBox1" ></asp:TextBox>
protected string DefaultVal(string val) { if(val == null) return("0"); else return(val); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)