Monthly Archives: December 2009

modify Visible function in repeater of gridview control

Problem: display label with the text full if the current field equal to zero in repeater or gridview Solution: <asp:Label ID=”Label1″ runat=”server” Text=”Full” ForeColor=”Red” Visible=’<%# Convert.ToBoolean(Eval(“name of your field”).ToString().Equals(“0″)? “true”:”false”) %>’>

Posted in asp.net | Tagged , , , , | 3 Comments

javascript back button work in IE and FF

Problem: Need javascript back button which work in IE and FF Solution: <a href=”javascript:void(0);” onclick=”history.back(); return false;”>Back</a>

Posted in javascript | Tagged , , | Leave a comment